From 05aa36197208c77c374004cc07797ea14bd921be Mon Sep 17 00:00:00 2001 From: Cristine Guadelupe Date: Tue, 30 Apr 2024 19:31:02 +0800 Subject: [PATCH] Glide Data Grid v6 --- assets/data_table/package-lock.json | 1446 ++++++++++++++++- assets/data_table/package.json | 2 +- assets/data_table/src/App.js | 8 +- lib/assets/data_table/build/chunk-2HCNYJTW.js | 14 + lib/assets/data_table/build/chunk-7E2MHSGD.js | 32 + lib/assets/data_table/build/chunk-RVIU7NCN.js | 14 - .../data-grid-overlay-editor-LA45TJRM.js | 1 + lib/assets/data_table/build/main.css | 2 +- lib/assets/data_table/build/main.js | 263 ++- .../build/number-overlay-editor-CU4RMYZF.js | 5 + ...number-overlay-editor-FPDVTUA6-T62XNA23.js | 5 - 11 files changed, 1536 insertions(+), 256 deletions(-) create mode 100644 lib/assets/data_table/build/chunk-2HCNYJTW.js create mode 100644 lib/assets/data_table/build/chunk-7E2MHSGD.js delete mode 100644 lib/assets/data_table/build/chunk-RVIU7NCN.js create mode 100644 lib/assets/data_table/build/data-grid-overlay-editor-LA45TJRM.js create mode 100644 lib/assets/data_table/build/number-overlay-editor-CU4RMYZF.js delete mode 100644 lib/assets/data_table/build/number-overlay-editor-FPDVTUA6-T62XNA23.js diff --git a/assets/data_table/package-lock.json b/assets/data_table/package-lock.json index 1634e4d1..d72ef9df 100644 --- a/assets/data_table/package-lock.json +++ b/assets/data_table/package-lock.json @@ -5,7 +5,7 @@ "packages": { "": { "dependencies": { - "@glideapps/glide-data-grid": "^5.3.2", + "@glideapps/glide-data-grid": "^6.0.3", "@remixicon/react": "^4.1.1", "lodash": "^4.17.21", "marked": "^4.2.2", @@ -45,6 +45,369 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/@ampproject/remapping": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", + "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.24.2", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.2.tgz", + "integrity": "sha512-y5+tLQyV8pg3fsiln67BVLD1P13Eg4lh5RW9mF0zUuvLrv9uIQ4MCL+CRT+FTsBlBjcIan6PGsLcBN0m3ClUyQ==", + "dependencies": { + "@babel/highlight": "^7.24.2", + "picocolors": "^1.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.24.4", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.24.4.tgz", + "integrity": "sha512-vg8Gih2MLK+kOkHJp4gBEIkyaIi00jgWot2D9QOmmfLC8jINSOzmCLta6Bvz/JSBCqnegV0L80jhxkol5GWNfQ==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.24.5.tgz", + "integrity": "sha512-tVQRucExLQ02Boi4vdPp49svNGcfL2GhdTCT9aldhXgCJVAI21EtRfBettiuLUwce/7r6bFdgs6JFkcdTiFttA==", + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.24.2", + "@babel/generator": "^7.24.5", + "@babel/helper-compilation-targets": "^7.23.6", + "@babel/helper-module-transforms": "^7.24.5", + "@babel/helpers": "^7.24.5", + "@babel/parser": "^7.24.5", + "@babel/template": "^7.24.0", + "@babel/traverse": "^7.24.5", + "@babel/types": "^7.24.5", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/generator": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.24.5.tgz", + "integrity": "sha512-x32i4hEXvr+iI0NEoEfDKzlemF8AmtOP8CcrRaEcpzysWuoEb1KknpcvMsHKPONoKZiDuItklgWhB18xEhr9PA==", + "dependencies": { + "@babel/types": "^7.24.5", + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25", + "jsesc": "^2.5.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.23.6.tgz", + "integrity": "sha512-9JB548GZoQVmzrFgp8o7KxdgkTGm6xs9DW0o/Pim72UDjzr5ObUQ6ZzYPqA+g9OTS2bBQoctLJrky0RDCAWRgQ==", + "dependencies": { + "@babel/compat-data": "^7.23.5", + "@babel/helper-validator-option": "^7.23.5", + "browserslist": "^4.22.2", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets/node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/@babel/helper-environment-visitor": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", + "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-function-name": { + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", + "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", + "dependencies": { + "@babel/template": "^7.22.15", + "@babel/types": "^7.23.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-hoist-variables": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", + "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.24.3", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.24.3.tgz", + "integrity": "sha512-viKb0F9f2s0BCS22QSF308z/+1YWKV/76mwt61NBzS5izMzDPwdq1pTrzf+Li3npBWX9KdQbkeCt1jSAM7lZqg==", + "dependencies": { + "@babel/types": "^7.24.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.24.5.tgz", + "integrity": "sha512-9GxeY8c2d2mdQUP1Dye0ks3VDyIMS98kt/llQ2nUId8IsWqTF0l1LkSX0/uP7l7MCDrzXS009Hyhe2gzTiGW8A==", + "dependencies": { + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-module-imports": "^7.24.3", + "@babel/helper-simple-access": "^7.24.5", + "@babel/helper-split-export-declaration": "^7.24.5", + "@babel/helper-validator-identifier": "^7.24.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.5.tgz", + "integrity": "sha512-xjNLDopRzW2o6ba0gKbkZq5YWEBaK3PCyTOY1K2P/O07LGMhMqlMXPxwN4S5/RhWuCobT8z0jrlKGlYmeR1OhQ==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-simple-access": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.24.5.tgz", + "integrity": "sha512-uH3Hmf5q5n7n8mz7arjUlDOCbttY/DW4DYhE6FUsjKJ/oYC1kQQUvwEQWxRwUpX9qQKRXeqLwWxrqilMrf32sQ==", + "dependencies": { + "@babel/types": "^7.24.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-split-export-declaration": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.24.5.tgz", + "integrity": "sha512-5CHncttXohrHk8GWOFCcCl4oRD9fKosWlIRgWm4ql9VYioKm52Mk2xsmoohvm7f3JoiLSM5ZgJuRaf5QZZYd3Q==", + "dependencies": { + "@babel/types": "^7.24.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.1.tgz", + "integrity": "sha512-2ofRCjnnA9y+wk8b9IAREroeUP02KHp431N2mhKniy2yKIDKpbrHv9eXwm8cBeWQYcJmzv5qKCu65P47eCF7CQ==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.5.tgz", + "integrity": "sha512-3q93SSKX2TWCG30M2G2kwaKeTYgEUp5Snjuj8qm729SObL6nbtUldAi37qbxkD5gg3xnBio+f9nqpSepGZMvxA==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz", + "integrity": "sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.24.5.tgz", + "integrity": "sha512-CiQmBMMpMQHwM5m01YnrM6imUG1ebgYJ+fAIW4FZe6m4qHTPaRHti+R8cggAwkdz4oXhtO4/K9JWlh+8hIfR2Q==", + "dependencies": { + "@babel/template": "^7.24.0", + "@babel/traverse": "^7.24.5", + "@babel/types": "^7.24.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.5.tgz", + "integrity": "sha512-8lLmua6AVh/8SLJRRVD6V8p73Hir9w5mJrhE+IPpILG31KKlI9iz5zmBYKcWPS59qSfgP9RaSBQSHHE81WKuEw==", + "dependencies": { + "@babel/helper-validator-identifier": "^7.24.5", + "chalk": "^2.4.2", + "js-tokens": "^4.0.0", + "picocolors": "^1.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.5.tgz", + "integrity": "sha512-EOv5IK8arwh3LI47dz1b0tKUb/1uhHAnHJOrjgtQMIpu1uXd9mlFrJg9IUgGUgZ41Ch0K8REPTYpO7B76b4vJg==", + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-proposal-export-namespace-from": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.18.9.tgz", + "integrity": "sha512-k1NtHyOMvlDDFeb9G5PhUXuGj8m/wiwojgQVEhJ/fsVsMCpLyOP4h0uGEjYJKrRI+EVPlb5Jk+Gt9P97lOGwtA==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-export-namespace-from instead.", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.9", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-dynamic-import": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", + "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-export-namespace-from": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz", + "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-commonjs": { + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.24.1.tgz", + "integrity": "sha512-szog8fFTUxBfw0b98gEWPaEqF42ZUD/T3bkynW/wtgx2p/XCP55WEsb+VosKceRSd6njipdZvNogqdtI4Q0chw==", + "dependencies": { + "@babel/helper-module-transforms": "^7.23.3", + "@babel/helper-plugin-utils": "^7.24.0", + "@babel/helper-simple-access": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/template": { + "version": "7.24.0", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.24.0.tgz", + "integrity": "sha512-Bkf2q8lMB0AFpX0NFEqSbx1OkTHf0f+0j82mkw+ZpzBnkk7e9Ql0891vlfgi+kHwOk8tQjiQHpqh4LaSa0fKEA==", + "dependencies": { + "@babel/code-frame": "^7.23.5", + "@babel/parser": "^7.24.0", + "@babel/types": "^7.24.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.24.5.tgz", + "integrity": "sha512-7aaBLeDQ4zYcUFDUD41lJc1fG8+5IU9DaNSJAgal866FGvmD5EbWQgnEC6kO1gGLsX0esNkfnJSndbTXA3r7UA==", + "dependencies": { + "@babel/code-frame": "^7.24.2", + "@babel/generator": "^7.24.5", + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-function-name": "^7.23.0", + "@babel/helper-hoist-variables": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.24.5", + "@babel/parser": "^7.24.5", + "@babel/types": "^7.24.5", + "debug": "^4.3.1", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.5.tgz", + "integrity": "sha512-6mQNsaLeXTw0nxYUYu+NSa4Hx4BlF1x1x8/PMFbiR+GBSr+2DkECc69b8hgy2frEodNcvPffeH8YfWd3LI6jhQ==", + "dependencies": { + "@babel/helper-string-parser": "^7.24.1", + "@babel/helper-validator-identifier": "^7.24.5", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@emotion/is-prop-valid": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-1.2.2.tgz", + "integrity": "sha512-uNsoYd37AFmaCdXlg6EYD1KaPOaRWRByMCYzbKUX4+hhMfrxdVSelShywL4JVaAeM/eHUOSprYBQls+/neX3pw==", + "dependencies": { + "@emotion/memoize": "^0.8.1" + } + }, + "node_modules/@emotion/memoize": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.8.1.tgz", + "integrity": "sha512-W2P2c/VRW1/1tLox0mVUalvnWXxavmv/Oum2aPsRcoDJuob75FC3Y8FbpfLwUegRcxINtGUMPq0tFCvYNTBXNA==" + }, "node_modules/@esbuild/aix-ppc64": { "version": "0.20.0", "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.20.0.tgz", @@ -414,11 +777,12 @@ } }, "node_modules/@glideapps/glide-data-grid": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/@glideapps/glide-data-grid/-/glide-data-grid-5.3.2.tgz", - "integrity": "sha512-DkAqvPFMCLYtpcGTRnZcY31u5SqHnDxgeGE8UZuXpXQiHE4yPhUkcNfxp/dcsGiVHr+TXP8RujyGHUDDmmpFlw==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/@glideapps/glide-data-grid/-/glide-data-grid-6.0.3.tgz", + "integrity": "sha512-YXKggiNOaEemf0jP0jORq2EQKz+zXms+6mGzZc+q0mLMjmgzzoGLOQC1uYcynXSj1R61bd27JcPFsoH+Gj37Vg==", "dependencies": { - "canvas-hypertxt": "^0.0.7", + "@linaria/react": "^4.5.3", + "canvas-hypertxt": "^1.0.3", "react-number-format": "^5.0.0" }, "peerDependencies": { @@ -447,33 +811,30 @@ } }, "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", - "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", - "dev": true, + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", + "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", "dependencies": { - "@jridgewell/set-array": "^1.0.1", + "@jridgewell/set-array": "^1.2.1", "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" + "@jridgewell/trace-mapping": "^0.3.24" }, "engines": { "node": ">=6.0.0" } }, "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", - "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", - "dev": true, + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", "engines": { "node": ">=6.0.0" } }, "node_modules/@jridgewell/set-array": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", - "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", - "dev": true, + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", + "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", "engines": { "node": ">=6.0.0" } @@ -481,19 +842,97 @@ "node_modules/@jridgewell/sourcemap-codec": { "version": "1.4.15", "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", - "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", - "dev": true + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" }, "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.22", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.22.tgz", - "integrity": "sha512-Wf963MzWtA2sjrNt+g18IAln9lKnlRp+K2eH4jjIoF1wYeq3aMREpG09xhlhdzS0EjwU7qmUJYangWa+151vZw==", - "dev": true, + "version": "0.3.25", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" } }, + "node_modules/@linaria/core": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/@linaria/core/-/core-4.5.4.tgz", + "integrity": "sha512-vMs/5iU0stxjfbBCxobIgY+wSQx4G8ukNwrhjPVD+6bF9QrTwi5rl0mKaCMxaGMjnfsLRiiM3i+hnWLIEYLdSg==", + "dependencies": { + "@linaria/logger": "^4.5.0", + "@linaria/tags": "^4.5.4", + "@linaria/utils": "^4.5.3" + }, + "engines": { + "node": "^12.16.0 || >=13.7.0" + } + }, + "node_modules/@linaria/logger": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/@linaria/logger/-/logger-4.5.0.tgz", + "integrity": "sha512-XdQLk242Cpcsc9a3Cz1ktOE5ysTo2TpxdeFQEPwMm8Z/+F/S6ZxBDdHYJL09srXWz3hkJr3oS2FPuMZNH1HIxw==", + "dependencies": { + "debug": "^4.1.1", + "picocolors": "^1.0.0" + }, + "engines": { + "node": "^12.16.0 || >=13.7.0" + } + }, + "node_modules/@linaria/react": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/@linaria/react/-/react-4.5.4.tgz", + "integrity": "sha512-/dhCVCsfdGPfQCPV0q5yy+DDlFXepvfXrw/os2fC+Xo1v9J/9gyiaBBWHzcumauvNNFj8aN6vRkj89fMujPHew==", + "dependencies": { + "@emotion/is-prop-valid": "^1.2.0", + "@linaria/core": "^4.5.4", + "@linaria/tags": "^4.5.4", + "@linaria/utils": "^4.5.3", + "minimatch": "^9.0.3", + "react-html-attributes": "^1.4.6", + "ts-invariant": "^0.10.3" + }, + "engines": { + "node": "^12.16.0 || >=13.7.0" + }, + "peerDependencies": { + "react": ">=16" + } + }, + "node_modules/@linaria/tags": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/@linaria/tags/-/tags-4.5.4.tgz", + "integrity": "sha512-HPxLB6HlJWLi6o8+8lTLegOmDnbMbuzEE+zzunaPZEGSoIIYx8HAv5VbY/sG/zNyxDElk6laiAwEVWN8h5/zxg==", + "dependencies": { + "@babel/generator": "^7.22.9", + "@linaria/logger": "^4.5.0", + "@linaria/utils": "^4.5.3" + }, + "engines": { + "node": "^12.16.0 || >=13.7.0" + } + }, + "node_modules/@linaria/utils": { + "version": "4.5.3", + "resolved": "https://registry.npmjs.org/@linaria/utils/-/utils-4.5.3.tgz", + "integrity": "sha512-tSpxA3Zn0DKJ2n/YBnYAgiDY+MNvkmzAHrD8R9PKrpGaZ+wz1jQEmE1vGn1cqh8dJyWK0NzPAA8sf1cqa+RmAg==", + "dependencies": { + "@babel/core": "^7.22.9", + "@babel/generator": "^7.22.9", + "@babel/plugin-proposal-export-namespace-from": "^7.18.9", + "@babel/plugin-syntax-dynamic-import": "^7.8.3", + "@babel/plugin-transform-modules-commonjs": "^7.22.5", + "@babel/template": "^7.22.5", + "@babel/traverse": "^7.22.8", + "@babel/types": "^7.22.5", + "@linaria/logger": "^4.5.0", + "babel-merge": "^3.0.0", + "find-up": "^5.0.0", + "minimatch": "^9.0.3" + }, + "engines": { + "node": "^12.16.0 || >=13.7.0" + } + }, "node_modules/@livebook/kino-bundler": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/@livebook/kino-bundler/-/kino-bundler-0.1.0.tgz", @@ -683,11 +1122,23 @@ "postcss": "^8.1.0" } }, + "node_modules/babel-merge": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/babel-merge/-/babel-merge-3.0.0.tgz", + "integrity": "sha512-eBOBtHnzt9xvnjpYNI5HmaPp/b2vMveE5XggzqHnQeHJ8mFIBrBv6WZEVIj5jJ2uwTItkqKo9gWzEEcBxEq0yw==", + "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", + "dependencies": { + "deepmerge": "^2.2.1", + "object.omit": "^3.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" }, "node_modules/binary-extensions": { "version": "2.2.0", @@ -702,7 +1153,6 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, "dependencies": { "balanced-match": "^1.0.0" } @@ -723,7 +1173,6 @@ "version": "4.22.3", "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.22.3.tgz", "integrity": "sha512-UAp55yfwNv0klWNapjs/ktHoguxuQNGnOzxYmfnXIS+8AsRDZkSDxg7R1AX3GKzn078SBI5dzwzj/Yx0Or0e3A==", - "dev": true, "funding": [ { "type": "opencollective", @@ -764,7 +1213,6 @@ "version": "1.0.30001584", "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001584.tgz", "integrity": "sha512-LOz7CCQ9M1G7OjJOF9/mzmqmj3jE/7VOmrfw6Mgs0E8cjOsbRXQJHsPBfmBOXDskXKrHLyyW3n7kpDW/4BsfpQ==", - "dev": true, "funding": [ { "type": "opencollective", @@ -781,9 +1229,46 @@ ] }, "node_modules/canvas-hypertxt": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/canvas-hypertxt/-/canvas-hypertxt-0.0.7.tgz", - "integrity": "sha512-XPXJvvaEQddHl0KaDdnnEowcCiYiL2gJz4M8ANK1GvZPcZimgvjRubnChtUospZWFSiNJtE06VkLnQs2vve5tQ==" + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/canvas-hypertxt/-/canvas-hypertxt-1.0.3.tgz", + "integrity": "sha512-+VsMpRr64jYgKq2IeFUNel3vCZH/IzS+iXSHxmUV3IUH5dXlC9xHz4AwtPZisDxZ5MWcuK0V+TXgPKFPiZnxzg==" + }, + "node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/chalk/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/chalk/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/chalk/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" }, "node_modules/chokidar": { "version": "3.5.3", @@ -844,6 +1329,11 @@ "node": ">= 6" } }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==" + }, "node_modules/cross-spawn": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", @@ -870,6 +1360,30 @@ "node": ">=4" } }, + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/deepmerge": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-2.2.1.tgz", + "integrity": "sha512-R9hc1Xa/NOBi9WRVUWg19rl1UB7Tt4kuPd+thNJgFZoxXsTz7ncaPaeIm+40oSGuP33DfMb4sZt1QIGiJzC4EA==", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/didyoumean": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz", @@ -891,8 +1405,7 @@ "node_modules/electron-to-chromium": { "version": "1.4.657", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.657.tgz", - "integrity": "sha512-On2ymeleg6QbRuDk7wNgDdXtNqlJLM2w4Agx1D/RiTmItiL+a9oq5p7HUa2ZtkAtGBe/kil2dq/7rPfkbe0r5w==", - "dev": true + "integrity": "sha512-On2ymeleg6QbRuDk7wNgDdXtNqlJLM2w4Agx1D/RiTmItiL+a9oq5p7HUa2ZtkAtGBe/kil2dq/7rPfkbe0r5w==" }, "node_modules/emoji-regex": { "version": "9.2.2", @@ -956,11 +1469,18 @@ "version": "3.1.2", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", - "dev": true, "engines": { "node": ">=6" } }, + "node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "engines": { + "node": ">=0.8.0" + } + }, "node_modules/fast-glob": { "version": "3.3.2", "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", @@ -998,6 +1518,21 @@ "node": ">=8" } }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/foreground-child": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.1.1.tgz", @@ -1059,6 +1594,14 @@ "loader-utils": "^3.2.0" } }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "engines": { + "node": ">=6.9.0" + } + }, "node_modules/glob": { "version": "10.3.10", "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz", @@ -1093,6 +1636,22 @@ "node": ">= 6" } }, + "node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "engines": { + "node": ">=4" + } + }, + "node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "engines": { + "node": ">=4" + } + }, "node_modules/hasown": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz", @@ -1105,6 +1664,11 @@ "node": ">= 0.4" } }, + "node_modules/html-element-attributes": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/html-element-attributes/-/html-element-attributes-1.3.1.tgz", + "integrity": "sha512-UrRKgp5sQmRnDy4TEwAUsu14XBUlzKB8U3hjIYDjcZ3Hbp86Jtftzxfgrv6E/ii/h78tsaZwAnAE8HwnHr0dPA==" + }, "node_modules/icss-utils": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz", @@ -1147,6 +1711,17 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dependencies": { + "is-plain-object": "^2.0.4" + }, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/is-extglob": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", @@ -1186,12 +1761,31 @@ "node": ">=0.12.0" } }, + "node_modules/is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", "dev": true }, + "node_modules/isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/jackspeak": { "version": "2.3.6", "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.6.tgz", @@ -1224,6 +1818,28 @@ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" }, + "node_modules/jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, "node_modules/lilconfig": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz", @@ -1248,6 +1864,20 @@ "node": ">= 12.13.0" } }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/lodash": { "version": "4.17.21", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", @@ -1316,7 +1946,6 @@ "version": "9.0.3", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", - "dev": true, "dependencies": { "brace-expansion": "^2.0.1" }, @@ -1336,6 +1965,11 @@ "node": ">=16 || 14 >=14.17" } }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, "node_modules/mz": { "version": "2.7.0", "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz", @@ -1368,8 +2002,7 @@ "node_modules/node-releases": { "version": "2.0.14", "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.14.tgz", - "integrity": "sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==", - "dev": true + "integrity": "sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==" }, "node_modules/normalize-path": { "version": "3.0.0", @@ -1406,6 +2039,53 @@ "node": ">= 6" } }, + "node_modules/object.omit": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/object.omit/-/object.omit-3.0.0.tgz", + "integrity": "sha512-EO+BCv6LJfu+gBIF3ggLicFebFLN5zqzz/WWJlMFfkMyGth+oBkhxzDl0wx2W4GkLzuQs/FsSkXZb2IMWQqmBQ==", + "dependencies": { + "is-extendable": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "engines": { + "node": ">=8" + } + }, "node_modules/path-key": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", @@ -1440,8 +2120,7 @@ "node_modules/picocolors": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", - "dev": true + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" }, "node_modules/picomatch": { "version": "2.3.1", @@ -1761,6 +2440,14 @@ "node": ">= 6" } }, + "node_modules/react-html-attributes": { + "version": "1.4.6", + "resolved": "https://registry.npmjs.org/react-html-attributes/-/react-html-attributes-1.4.6.tgz", + "integrity": "sha512-uS3MmThNKFH2EZUQQw4k5pIcU7XIr208UE5dktrj/GOH1CMagqxDl4DCLpt3o2l9x+IB5nVYBeN3Cr4IutBXAg==", + "dependencies": { + "html-element-attributes": "^1.0.0" + } + }, "node_modules/react-is": { "version": "16.13.1", "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", @@ -1896,6 +2583,14 @@ "loose-envify": "^1.1.0" } }, + "node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "bin": { + "semver": "bin/semver.js" + } + }, "node_modules/shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", @@ -2062,6 +2757,17 @@ "node": ">=16 || 14 >=14.17" } }, + "node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/supports-preserve-symlinks-flag": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", @@ -2149,6 +2855,14 @@ "resolved": "https://registry.npmjs.org/tiny-warning/-/tiny-warning-1.0.3.tgz", "integrity": "sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA==" }, + "node_modules/to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", + "engines": { + "node": ">=4" + } + }, "node_modules/to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", @@ -2167,6 +2881,22 @@ "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==", "dev": true }, + "node_modules/ts-invariant": { + "version": "0.10.3", + "resolved": "https://registry.npmjs.org/ts-invariant/-/ts-invariant-0.10.3.tgz", + "integrity": "sha512-uivwYcQaxAucv1CzRp2n/QdYPo4ILf9VXgH19zEIjFx2EJufV16P0JtJVpYHy89DItG6Kwj2oIUjrcK5au+4tQ==", + "dependencies": { + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/tslib": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" + }, "node_modules/undici-types": { "version": "5.26.5", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", @@ -2177,7 +2907,6 @@ "version": "1.0.13", "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz", "integrity": "sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==", - "dev": true, "funding": [ { "type": "opencollective", @@ -2315,6 +3044,11 @@ "node": ">=8" } }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==" + }, "node_modules/yaml": { "version": "2.3.4", "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.4.tgz", @@ -2323,6 +3057,17 @@ "engines": { "node": ">= 14" } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } } }, "dependencies": { @@ -2332,6 +3077,273 @@ "integrity": "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==", "dev": true }, + "@ampproject/remapping": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", + "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", + "requires": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "@babel/code-frame": { + "version": "7.24.2", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.2.tgz", + "integrity": "sha512-y5+tLQyV8pg3fsiln67BVLD1P13Eg4lh5RW9mF0zUuvLrv9uIQ4MCL+CRT+FTsBlBjcIan6PGsLcBN0m3ClUyQ==", + "requires": { + "@babel/highlight": "^7.24.2", + "picocolors": "^1.0.0" + } + }, + "@babel/compat-data": { + "version": "7.24.4", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.24.4.tgz", + "integrity": "sha512-vg8Gih2MLK+kOkHJp4gBEIkyaIi00jgWot2D9QOmmfLC8jINSOzmCLta6Bvz/JSBCqnegV0L80jhxkol5GWNfQ==" + }, + "@babel/core": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.24.5.tgz", + "integrity": "sha512-tVQRucExLQ02Boi4vdPp49svNGcfL2GhdTCT9aldhXgCJVAI21EtRfBettiuLUwce/7r6bFdgs6JFkcdTiFttA==", + "requires": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.24.2", + "@babel/generator": "^7.24.5", + "@babel/helper-compilation-targets": "^7.23.6", + "@babel/helper-module-transforms": "^7.24.5", + "@babel/helpers": "^7.24.5", + "@babel/parser": "^7.24.5", + "@babel/template": "^7.24.0", + "@babel/traverse": "^7.24.5", + "@babel/types": "^7.24.5", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + } + }, + "@babel/generator": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.24.5.tgz", + "integrity": "sha512-x32i4hEXvr+iI0NEoEfDKzlemF8AmtOP8CcrRaEcpzysWuoEb1KknpcvMsHKPONoKZiDuItklgWhB18xEhr9PA==", + "requires": { + "@babel/types": "^7.24.5", + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25", + "jsesc": "^2.5.1" + } + }, + "@babel/helper-compilation-targets": { + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.23.6.tgz", + "integrity": "sha512-9JB548GZoQVmzrFgp8o7KxdgkTGm6xs9DW0o/Pim72UDjzr5ObUQ6ZzYPqA+g9OTS2bBQoctLJrky0RDCAWRgQ==", + "requires": { + "@babel/compat-data": "^7.23.5", + "@babel/helper-validator-option": "^7.23.5", + "browserslist": "^4.22.2", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "dependencies": { + "lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "requires": { + "yallist": "^3.0.2" + } + } + } + }, + "@babel/helper-environment-visitor": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", + "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==" + }, + "@babel/helper-function-name": { + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", + "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", + "requires": { + "@babel/template": "^7.22.15", + "@babel/types": "^7.23.0" + } + }, + "@babel/helper-hoist-variables": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", + "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", + "requires": { + "@babel/types": "^7.22.5" + } + }, + "@babel/helper-module-imports": { + "version": "7.24.3", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.24.3.tgz", + "integrity": "sha512-viKb0F9f2s0BCS22QSF308z/+1YWKV/76mwt61NBzS5izMzDPwdq1pTrzf+Li3npBWX9KdQbkeCt1jSAM7lZqg==", + "requires": { + "@babel/types": "^7.24.0" + } + }, + "@babel/helper-module-transforms": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.24.5.tgz", + "integrity": "sha512-9GxeY8c2d2mdQUP1Dye0ks3VDyIMS98kt/llQ2nUId8IsWqTF0l1LkSX0/uP7l7MCDrzXS009Hyhe2gzTiGW8A==", + "requires": { + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-module-imports": "^7.24.3", + "@babel/helper-simple-access": "^7.24.5", + "@babel/helper-split-export-declaration": "^7.24.5", + "@babel/helper-validator-identifier": "^7.24.5" + } + }, + "@babel/helper-plugin-utils": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.5.tgz", + "integrity": "sha512-xjNLDopRzW2o6ba0gKbkZq5YWEBaK3PCyTOY1K2P/O07LGMhMqlMXPxwN4S5/RhWuCobT8z0jrlKGlYmeR1OhQ==" + }, + "@babel/helper-simple-access": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.24.5.tgz", + "integrity": "sha512-uH3Hmf5q5n7n8mz7arjUlDOCbttY/DW4DYhE6FUsjKJ/oYC1kQQUvwEQWxRwUpX9qQKRXeqLwWxrqilMrf32sQ==", + "requires": { + "@babel/types": "^7.24.5" + } + }, + "@babel/helper-split-export-declaration": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.24.5.tgz", + "integrity": "sha512-5CHncttXohrHk8GWOFCcCl4oRD9fKosWlIRgWm4ql9VYioKm52Mk2xsmoohvm7f3JoiLSM5ZgJuRaf5QZZYd3Q==", + "requires": { + "@babel/types": "^7.24.5" + } + }, + "@babel/helper-string-parser": { + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.1.tgz", + "integrity": "sha512-2ofRCjnnA9y+wk8b9IAREroeUP02KHp431N2mhKniy2yKIDKpbrHv9eXwm8cBeWQYcJmzv5qKCu65P47eCF7CQ==" + }, + "@babel/helper-validator-identifier": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.5.tgz", + "integrity": "sha512-3q93SSKX2TWCG30M2G2kwaKeTYgEUp5Snjuj8qm729SObL6nbtUldAi37qbxkD5gg3xnBio+f9nqpSepGZMvxA==" + }, + "@babel/helper-validator-option": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz", + "integrity": "sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw==" + }, + "@babel/helpers": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.24.5.tgz", + "integrity": "sha512-CiQmBMMpMQHwM5m01YnrM6imUG1ebgYJ+fAIW4FZe6m4qHTPaRHti+R8cggAwkdz4oXhtO4/K9JWlh+8hIfR2Q==", + "requires": { + "@babel/template": "^7.24.0", + "@babel/traverse": "^7.24.5", + "@babel/types": "^7.24.5" + } + }, + "@babel/highlight": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.5.tgz", + "integrity": "sha512-8lLmua6AVh/8SLJRRVD6V8p73Hir9w5mJrhE+IPpILG31KKlI9iz5zmBYKcWPS59qSfgP9RaSBQSHHE81WKuEw==", + "requires": { + "@babel/helper-validator-identifier": "^7.24.5", + "chalk": "^2.4.2", + "js-tokens": "^4.0.0", + "picocolors": "^1.0.0" + } + }, + "@babel/parser": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.5.tgz", + "integrity": "sha512-EOv5IK8arwh3LI47dz1b0tKUb/1uhHAnHJOrjgtQMIpu1uXd9mlFrJg9IUgGUgZ41Ch0K8REPTYpO7B76b4vJg==" + }, + "@babel/plugin-proposal-export-namespace-from": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.18.9.tgz", + "integrity": "sha512-k1NtHyOMvlDDFeb9G5PhUXuGj8m/wiwojgQVEhJ/fsVsMCpLyOP4h0uGEjYJKrRI+EVPlb5Jk+Gt9P97lOGwtA==", + "requires": { + "@babel/helper-plugin-utils": "^7.18.9", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3" + } + }, + "@babel/plugin-syntax-dynamic-import": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", + "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-export-namespace-from": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz", + "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==", + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-transform-modules-commonjs": { + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.24.1.tgz", + "integrity": "sha512-szog8fFTUxBfw0b98gEWPaEqF42ZUD/T3bkynW/wtgx2p/XCP55WEsb+VosKceRSd6njipdZvNogqdtI4Q0chw==", + "requires": { + "@babel/helper-module-transforms": "^7.23.3", + "@babel/helper-plugin-utils": "^7.24.0", + "@babel/helper-simple-access": "^7.22.5" + } + }, + "@babel/template": { + "version": "7.24.0", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.24.0.tgz", + "integrity": "sha512-Bkf2q8lMB0AFpX0NFEqSbx1OkTHf0f+0j82mkw+ZpzBnkk7e9Ql0891vlfgi+kHwOk8tQjiQHpqh4LaSa0fKEA==", + "requires": { + "@babel/code-frame": "^7.23.5", + "@babel/parser": "^7.24.0", + "@babel/types": "^7.24.0" + } + }, + "@babel/traverse": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.24.5.tgz", + "integrity": "sha512-7aaBLeDQ4zYcUFDUD41lJc1fG8+5IU9DaNSJAgal866FGvmD5EbWQgnEC6kO1gGLsX0esNkfnJSndbTXA3r7UA==", + "requires": { + "@babel/code-frame": "^7.24.2", + "@babel/generator": "^7.24.5", + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-function-name": "^7.23.0", + "@babel/helper-hoist-variables": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.24.5", + "@babel/parser": "^7.24.5", + "@babel/types": "^7.24.5", + "debug": "^4.3.1", + "globals": "^11.1.0" + } + }, + "@babel/types": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.5.tgz", + "integrity": "sha512-6mQNsaLeXTw0nxYUYu+NSa4Hx4BlF1x1x8/PMFbiR+GBSr+2DkECc69b8hgy2frEodNcvPffeH8YfWd3LI6jhQ==", + "requires": { + "@babel/helper-string-parser": "^7.24.1", + "@babel/helper-validator-identifier": "^7.24.5", + "to-fast-properties": "^2.0.0" + } + }, + "@emotion/is-prop-valid": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-1.2.2.tgz", + "integrity": "sha512-uNsoYd37AFmaCdXlg6EYD1KaPOaRWRByMCYzbKUX4+hhMfrxdVSelShywL4JVaAeM/eHUOSprYBQls+/neX3pw==", + "requires": { + "@emotion/memoize": "^0.8.1" + } + }, + "@emotion/memoize": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.8.1.tgz", + "integrity": "sha512-W2P2c/VRW1/1tLox0mVUalvnWXxavmv/Oum2aPsRcoDJuob75FC3Y8FbpfLwUegRcxINtGUMPq0tFCvYNTBXNA==" + }, "@esbuild/aix-ppc64": { "version": "0.20.0", "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.20.0.tgz", @@ -2494,11 +3506,12 @@ "optional": true }, "@glideapps/glide-data-grid": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/@glideapps/glide-data-grid/-/glide-data-grid-5.3.2.tgz", - "integrity": "sha512-DkAqvPFMCLYtpcGTRnZcY31u5SqHnDxgeGE8UZuXpXQiHE4yPhUkcNfxp/dcsGiVHr+TXP8RujyGHUDDmmpFlw==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/@glideapps/glide-data-grid/-/glide-data-grid-6.0.3.tgz", + "integrity": "sha512-YXKggiNOaEemf0jP0jORq2EQKz+zXms+6mGzZc+q0mLMjmgzzoGLOQC1uYcynXSj1R61bd27JcPFsoH+Gj37Vg==", "requires": { - "canvas-hypertxt": "^0.0.7", + "@linaria/react": "^4.5.3", + "canvas-hypertxt": "^1.0.3", "react-number-format": "^5.0.0" } }, @@ -2517,44 +3530,101 @@ } }, "@jridgewell/gen-mapping": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", - "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", - "dev": true, + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", + "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", "requires": { - "@jridgewell/set-array": "^1.0.1", + "@jridgewell/set-array": "^1.2.1", "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" + "@jridgewell/trace-mapping": "^0.3.24" } }, "@jridgewell/resolve-uri": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", - "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", - "dev": true + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==" }, "@jridgewell/set-array": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", - "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", - "dev": true + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", + "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==" }, "@jridgewell/sourcemap-codec": { "version": "1.4.15", "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", - "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", - "dev": true + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" }, "@jridgewell/trace-mapping": { - "version": "0.3.22", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.22.tgz", - "integrity": "sha512-Wf963MzWtA2sjrNt+g18IAln9lKnlRp+K2eH4jjIoF1wYeq3aMREpG09xhlhdzS0EjwU7qmUJYangWa+151vZw==", - "dev": true, + "version": "0.3.25", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", "requires": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" } }, + "@linaria/core": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/@linaria/core/-/core-4.5.4.tgz", + "integrity": "sha512-vMs/5iU0stxjfbBCxobIgY+wSQx4G8ukNwrhjPVD+6bF9QrTwi5rl0mKaCMxaGMjnfsLRiiM3i+hnWLIEYLdSg==", + "requires": { + "@linaria/logger": "^4.5.0", + "@linaria/tags": "^4.5.4", + "@linaria/utils": "^4.5.3" + } + }, + "@linaria/logger": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/@linaria/logger/-/logger-4.5.0.tgz", + "integrity": "sha512-XdQLk242Cpcsc9a3Cz1ktOE5ysTo2TpxdeFQEPwMm8Z/+F/S6ZxBDdHYJL09srXWz3hkJr3oS2FPuMZNH1HIxw==", + "requires": { + "debug": "^4.1.1", + "picocolors": "^1.0.0" + } + }, + "@linaria/react": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/@linaria/react/-/react-4.5.4.tgz", + "integrity": "sha512-/dhCVCsfdGPfQCPV0q5yy+DDlFXepvfXrw/os2fC+Xo1v9J/9gyiaBBWHzcumauvNNFj8aN6vRkj89fMujPHew==", + "requires": { + "@emotion/is-prop-valid": "^1.2.0", + "@linaria/core": "^4.5.4", + "@linaria/tags": "^4.5.4", + "@linaria/utils": "^4.5.3", + "minimatch": "^9.0.3", + "react-html-attributes": "^1.4.6", + "ts-invariant": "^0.10.3" + } + }, + "@linaria/tags": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/@linaria/tags/-/tags-4.5.4.tgz", + "integrity": "sha512-HPxLB6HlJWLi6o8+8lTLegOmDnbMbuzEE+zzunaPZEGSoIIYx8HAv5VbY/sG/zNyxDElk6laiAwEVWN8h5/zxg==", + "requires": { + "@babel/generator": "^7.22.9", + "@linaria/logger": "^4.5.0", + "@linaria/utils": "^4.5.3" + } + }, + "@linaria/utils": { + "version": "4.5.3", + "resolved": "https://registry.npmjs.org/@linaria/utils/-/utils-4.5.3.tgz", + "integrity": "sha512-tSpxA3Zn0DKJ2n/YBnYAgiDY+MNvkmzAHrD8R9PKrpGaZ+wz1jQEmE1vGn1cqh8dJyWK0NzPAA8sf1cqa+RmAg==", + "requires": { + "@babel/core": "^7.22.9", + "@babel/generator": "^7.22.9", + "@babel/plugin-proposal-export-namespace-from": "^7.18.9", + "@babel/plugin-syntax-dynamic-import": "^7.8.3", + "@babel/plugin-transform-modules-commonjs": "^7.22.5", + "@babel/template": "^7.22.5", + "@babel/traverse": "^7.22.8", + "@babel/types": "^7.22.5", + "@linaria/logger": "^4.5.0", + "babel-merge": "^3.0.0", + "find-up": "^5.0.0", + "minimatch": "^9.0.3" + } + }, "@livebook/kino-bundler": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/@livebook/kino-bundler/-/kino-bundler-0.1.0.tgz", @@ -2688,11 +3758,19 @@ "postcss-value-parser": "^4.2.0" } }, + "babel-merge": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/babel-merge/-/babel-merge-3.0.0.tgz", + "integrity": "sha512-eBOBtHnzt9xvnjpYNI5HmaPp/b2vMveE5XggzqHnQeHJ8mFIBrBv6WZEVIj5jJ2uwTItkqKo9gWzEEcBxEq0yw==", + "requires": { + "deepmerge": "^2.2.1", + "object.omit": "^3.0.0" + } + }, "balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" }, "binary-extensions": { "version": "2.2.0", @@ -2704,7 +3782,6 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, "requires": { "balanced-match": "^1.0.0" } @@ -2722,7 +3799,6 @@ "version": "4.22.3", "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.22.3.tgz", "integrity": "sha512-UAp55yfwNv0klWNapjs/ktHoguxuQNGnOzxYmfnXIS+8AsRDZkSDxg7R1AX3GKzn078SBI5dzwzj/Yx0Or0e3A==", - "dev": true, "requires": { "caniuse-lite": "^1.0.30001580", "electron-to-chromium": "^1.4.648", @@ -2739,13 +3815,45 @@ "caniuse-lite": { "version": "1.0.30001584", "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001584.tgz", - "integrity": "sha512-LOz7CCQ9M1G7OjJOF9/mzmqmj3jE/7VOmrfw6Mgs0E8cjOsbRXQJHsPBfmBOXDskXKrHLyyW3n7kpDW/4BsfpQ==", - "dev": true + "integrity": "sha512-LOz7CCQ9M1G7OjJOF9/mzmqmj3jE/7VOmrfw6Mgs0E8cjOsbRXQJHsPBfmBOXDskXKrHLyyW3n7kpDW/4BsfpQ==" }, "canvas-hypertxt": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/canvas-hypertxt/-/canvas-hypertxt-0.0.7.tgz", - "integrity": "sha512-XPXJvvaEQddHl0KaDdnnEowcCiYiL2gJz4M8ANK1GvZPcZimgvjRubnChtUospZWFSiNJtE06VkLnQs2vve5tQ==" + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/canvas-hypertxt/-/canvas-hypertxt-1.0.3.tgz", + "integrity": "sha512-+VsMpRr64jYgKq2IeFUNel3vCZH/IzS+iXSHxmUV3IUH5dXlC9xHz4AwtPZisDxZ5MWcuK0V+TXgPKFPiZnxzg==" + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "requires": { + "color-convert": "^1.9.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" + } + } }, "chokidar": { "version": "3.5.3", @@ -2789,6 +3897,11 @@ "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", "dev": true }, + "convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==" + }, "cross-spawn": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", @@ -2806,6 +3919,19 @@ "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", "dev": true }, + "debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "requires": { + "ms": "2.1.2" + } + }, + "deepmerge": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-2.2.1.tgz", + "integrity": "sha512-R9hc1Xa/NOBi9WRVUWg19rl1UB7Tt4kuPd+thNJgFZoxXsTz7ncaPaeIm+40oSGuP33DfMb4sZt1QIGiJzC4EA==" + }, "didyoumean": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz", @@ -2827,8 +3953,7 @@ "electron-to-chromium": { "version": "1.4.657", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.657.tgz", - "integrity": "sha512-On2ymeleg6QbRuDk7wNgDdXtNqlJLM2w4Agx1D/RiTmItiL+a9oq5p7HUa2ZtkAtGBe/kil2dq/7rPfkbe0r5w==", - "dev": true + "integrity": "sha512-On2ymeleg6QbRuDk7wNgDdXtNqlJLM2w4Agx1D/RiTmItiL+a9oq5p7HUa2ZtkAtGBe/kil2dq/7rPfkbe0r5w==" }, "emoji-regex": { "version": "9.2.2", @@ -2884,8 +4009,12 @@ "escalade": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", - "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", - "dev": true + "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==" + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==" }, "fast-glob": { "version": "3.3.2", @@ -2918,6 +4047,15 @@ "to-regex-range": "^5.0.1" } }, + "find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "requires": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + } + }, "foreground-child": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.1.1.tgz", @@ -2956,6 +4094,11 @@ "loader-utils": "^3.2.0" } }, + "gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==" + }, "glob": { "version": "10.3.10", "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz", @@ -2978,6 +4121,16 @@ "is-glob": "^4.0.1" } }, + "globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==" + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==" + }, "hasown": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz", @@ -2987,6 +4140,11 @@ "function-bind": "^1.1.2" } }, + "html-element-attributes": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/html-element-attributes/-/html-element-attributes-1.3.1.tgz", + "integrity": "sha512-UrRKgp5sQmRnDy4TEwAUsu14XBUlzKB8U3hjIYDjcZ3Hbp86Jtftzxfgrv6E/ii/h78tsaZwAnAE8HwnHr0dPA==" + }, "icss-utils": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz", @@ -3018,6 +4176,14 @@ "hasown": "^2.0.0" } }, + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "requires": { + "is-plain-object": "^2.0.4" + } + }, "is-extglob": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", @@ -3045,12 +4211,25 @@ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "dev": true }, + "is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "requires": { + "isobject": "^3.0.1" + } + }, "isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", "dev": true }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==" + }, "jackspeak": { "version": "2.3.6", "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.6.tgz", @@ -3072,6 +4251,16 @@ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" }, + "jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==" + }, + "json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==" + }, "lilconfig": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz", @@ -3090,6 +4279,14 @@ "integrity": "sha512-ZvFw1KWS3GVyYBYb7qkmRM/WwL2TQQBxgCK62rlvm4WpVQ23Nb4tYjApUlfjrEGvOs7KHEsmyUn75OHZrJMWPw==", "dev": true }, + "locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "requires": { + "p-locate": "^5.0.0" + } + }, "lodash": { "version": "4.17.21", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", @@ -3140,7 +4337,6 @@ "version": "9.0.3", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", - "dev": true, "requires": { "brace-expansion": "^2.0.1" } @@ -3151,6 +4347,11 @@ "integrity": "sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==", "dev": true }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, "mz": { "version": "2.7.0", "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz", @@ -3171,8 +4372,7 @@ "node-releases": { "version": "2.0.14", "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.14.tgz", - "integrity": "sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==", - "dev": true + "integrity": "sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==" }, "normalize-path": { "version": "3.0.0", @@ -3197,6 +4397,35 @@ "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", "dev": true }, + "object.omit": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/object.omit/-/object.omit-3.0.0.tgz", + "integrity": "sha512-EO+BCv6LJfu+gBIF3ggLicFebFLN5zqzz/WWJlMFfkMyGth+oBkhxzDl0wx2W4GkLzuQs/FsSkXZb2IMWQqmBQ==", + "requires": { + "is-extendable": "^1.0.0" + } + }, + "p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "requires": { + "yocto-queue": "^0.1.0" + } + }, + "p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "requires": { + "p-limit": "^3.0.2" + } + }, + "path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==" + }, "path-key": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", @@ -3222,8 +4451,7 @@ "picocolors": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", - "dev": true + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" }, "picomatch": { "version": "2.3.1", @@ -3410,6 +4638,14 @@ "prop-types": "^15.5.8" } }, + "react-html-attributes": { + "version": "1.4.6", + "resolved": "https://registry.npmjs.org/react-html-attributes/-/react-html-attributes-1.4.6.tgz", + "integrity": "sha512-uS3MmThNKFH2EZUQQw4k5pIcU7XIr208UE5dktrj/GOH1CMagqxDl4DCLpt3o2l9x+IB5nVYBeN3Cr4IutBXAg==", + "requires": { + "html-element-attributes": "^1.0.0" + } + }, "react-is": { "version": "16.13.1", "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", @@ -3504,6 +4740,11 @@ "loose-envify": "^1.1.0" } }, + "semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==" + }, "shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", @@ -3623,6 +4864,14 @@ "ts-interface-checker": "^0.1.9" } }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "requires": { + "has-flag": "^3.0.0" + } + }, "supports-preserve-symlinks-flag": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", @@ -3693,6 +4942,11 @@ "resolved": "https://registry.npmjs.org/tiny-warning/-/tiny-warning-1.0.3.tgz", "integrity": "sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA==" }, + "to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==" + }, "to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", @@ -3708,6 +4962,19 @@ "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==", "dev": true }, + "ts-invariant": { + "version": "0.10.3", + "resolved": "https://registry.npmjs.org/ts-invariant/-/ts-invariant-0.10.3.tgz", + "integrity": "sha512-uivwYcQaxAucv1CzRp2n/QdYPo4ILf9VXgH19zEIjFx2EJufV16P0JtJVpYHy89DItG6Kwj2oIUjrcK5au+4tQ==", + "requires": { + "tslib": "^2.1.0" + } + }, + "tslib": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" + }, "undici-types": { "version": "5.26.5", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", @@ -3718,7 +4985,6 @@ "version": "1.0.13", "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz", "integrity": "sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==", - "dev": true, "requires": { "escalade": "^3.1.1", "picocolors": "^1.0.0" @@ -3804,11 +5070,21 @@ } } }, + "yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==" + }, "yaml": { "version": "2.3.4", "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.4.tgz", "integrity": "sha512-8aAvwVUSHpfEqTQ4w/KMlf3HcRdt50E5ODIQJBw1fQ5RL34xabzxtUlzTXVqc4rkZsPbvrXKWnABCD7kWSmocA==", "dev": true + }, + "yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==" } } } diff --git a/assets/data_table/package.json b/assets/data_table/package.json index 6b8fcb95..b1e6588b 100644 --- a/assets/data_table/package.json +++ b/assets/data_table/package.json @@ -4,7 +4,7 @@ "dev": "npm run build -- --watch --dev" }, "dependencies": { - "@glideapps/glide-data-grid": "^5.3.2", + "@glideapps/glide-data-grid": "^6.0.3", "@remixicon/react": "^4.1.1", "lodash": "^4.17.21", "marked": "^4.2.2", diff --git a/assets/data_table/src/App.js b/assets/data_table/src/App.js index a967e830..34345e05 100644 --- a/assets/data_table/src/App.js +++ b/assets/data_table/src/App.js @@ -155,7 +155,7 @@ export function App({ ctx, data }) { const rows = content.page_length; const drawHeader = useCallback( - (args) => { + (args, drawContent) => { const { ctx, theme, @@ -185,7 +185,8 @@ export function App({ ctx, data }) { : theme.textHeader; const fillInfoStyle = isSelected ? theme.accentLight : theme.textDark; const shouldDrawMenu = column.hasMenu === true && isHovered; - const hasSummary = column.summary ? true : false; + const summary = content.columns[column.sourceIndex - 1].summary; + const hasSummary = summary ? true : false; const fadeWidth = 35; const fadeStart = rect.width - fadeWidth; @@ -250,7 +251,6 @@ export function App({ ctx, data }) { ); if (hasSummary) { - const summary = content.columns[column.sourceIndex - 1].summary; const formattedSummary = Object.fromEntries( summary.keys.map((k, i) => [k, summary.values[i]]) ); @@ -285,7 +285,7 @@ export function App({ ctx, data }) { ctx.fill(p); } - return true; + drawContent(); }, [content] ); diff --git a/lib/assets/data_table/build/chunk-2HCNYJTW.js b/lib/assets/data_table/build/chunk-2HCNYJTW.js new file mode 100644 index 00000000..ece0cd92 --- /dev/null +++ b/lib/assets/data_table/build/chunk-2HCNYJTW.js @@ -0,0 +1,14 @@ +var ne=Object.create;var C=Object.defineProperty,oe=Object.defineProperties,ie=Object.getOwnPropertyDescriptor,se=Object.getOwnPropertyDescriptors,ae=Object.getOwnPropertyNames,v=Object.getOwnPropertySymbols,le=Object.getPrototypeOf,R=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable;var w=(e,t,r)=>t in e?C(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Te=(e,t)=>{for(var r in t||(t={}))R.call(t,r)&&w(e,r,t[r]);if(v)for(var r of v(t))M.call(t,r)&&w(e,r,t[r]);return e},je=(e,t)=>oe(e,se(t));var Ie=(e,t)=>{var r={};for(var n in e)R.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&v)for(var n of v(e))t.indexOf(n)<0&&M.call(e,n)&&(r[n]=e[n]);return r};var L=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ue=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of ae(t))!R.call(e,o)&&o!==r&&C(e,o,{get:()=>t[o],enumerable:!(n=ie(t,o))||n.enumerable});return e};var ce=(e,t,r)=>(r=e!=null?ne(le(e)):{},ue(t||!e||!e.__esModule?C(r,"default",{value:e,enumerable:!0}):r,e));var De=(e,t,r)=>(w(e,typeof t!="symbol"?t+"":t,r),r);var G=L(i=>{"use strict";var m=Symbol.for("react.element"),fe=Symbol.for("react.portal"),pe=Symbol.for("react.fragment"),de=Symbol.for("react.strict_mode"),ye=Symbol.for("react.profiler"),me=Symbol.for("react.provider"),he=Symbol.for("react.context"),ve=Symbol.for("react.forward_ref"),ge=Symbol.for("react.suspense"),ke=Symbol.for("react.memo"),xe=Symbol.for("react.lazy"),U=Symbol.iterator;function _e(e){return e===null||typeof e!="object"?null:(e=U&&e[U]||e["@@iterator"],typeof e=="function"?e:null)}var q={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},F=Object.assign,B={};function d(e,t,r){this.props=e,this.context=t,this.refs=B,this.updater=r||q}d.prototype.isReactComponent={};d.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};d.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function W(){}W.prototype=d.prototype;function P(e,t,r){this.props=e,this.context=t,this.refs=B,this.updater=r||q}var A=P.prototype=new W;A.constructor=P;F(A,d.prototype);A.isPureReactComponent=!0;var H=Array.isArray,X=Object.prototype.hasOwnProperty,N={current:null},Y={key:!0,ref:!0,__self:!0,__source:!0};function K(e,t,r){var n,o={},s=null,u=null;if(t!=null)for(n in t.ref!==void 0&&(u=t.ref),t.key!==void 0&&(s=""+t.key),t)X.call(t,n)&&!Y.hasOwnProperty(n)&&(o[n]=t[n]);var l=arguments.length-2;if(l===1)o.children=r;else if(1{"use strict";J.exports=G()});function Z(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Ce=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,_=Z(function(e){return Ce.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});var h=ce(Q(),1);var Re=function(){let t=Array.prototype.slice.call(arguments).filter(Boolean),r={},n=[];t.forEach(s=>{(s?s.split(" "):[]).forEach(l=>{if(l.startsWith("atm_")){let[,a]=l.split("_");r[a]=l}else n.push(l)})});let o=[];for(let s in r)Object.prototype.hasOwnProperty.call(r,s)&&o.push(r[s]);return o.push(...n),o.join(" ")},T=Re;var Oe=e=>e.toUpperCase()===e,Pe=e=>t=>e.indexOf(t)===-1,ee=(e,t)=>{let r={};return Object.keys(e).filter(Pe(t)).forEach(n=>{r[n]=e[n]}),r};function Ae(e,t,r){let n=ee(t,r);if(!e){let o=typeof _=="function"?{default:_}:_;Object.keys(n).forEach(s=>{o.default(s)||delete n[s]})}return n}var Ne=(e,t)=>{};function $e(e){var t;let r="";return n=>{let o=(u,l)=>{let{as:a=e,class:f=r}=u,te=n.propsAsIs===void 0?!(typeof a=="string"&&a.indexOf("-")===-1&&!Oe(a[0])):n.propsAsIs,p=Ae(te,u,["as","class"]);p.ref=l,p.className=n.atomic?T(n.class,p.className||f):T(p.className||f,n.class);let{vars:b}=n;if(b){let S={};for(let y in b){let D=b[y],E=D[0],re=D[1]||"",V=typeof E=="function"?E(u):E;Ne(V,n.name),S[`--${y}`]=`${V}${re}`}let j=p.style||{},I=Object.keys(j);I.length>0&&I.forEach(y=>{S[y]=j[y]}),p.style=S}return e.__linaria&&e!==a?(p.as=a,h.default.createElement(e,p)):h.default.createElement(a,p)},s=h.default.forwardRef?h.default.forwardRef(o):u=>{let l=ee(u,["innerRef"]);return o(l,u.innerRef)};return s.displayName=n.name,s.__linaria={className:n.class||r,extends:e},s}}var We=$e;export{Te as a,je as b,Ie as c,L as d,ce as e,De as f,Q as g,We as h}; +/*! Bundled license information: + +react/cjs/react.production.min.js: + (** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + *) +*/ diff --git a/lib/assets/data_table/build/chunk-7E2MHSGD.js b/lib/assets/data_table/build/chunk-7E2MHSGD.js new file mode 100644 index 00000000..651a47b7 --- /dev/null +++ b/lib/assets/data_table/build/chunk-7E2MHSGD.js @@ -0,0 +1,32 @@ +import{a as gt,b as ou,c as uu,d as x,e as Il,f as yt,g as jl}from"./chunk-2HCNYJTW.js";var gu=x(F=>{"use strict";function Bl(e,t){var n=e.length;e.push(t);e:for(;0>>1,l=e[r];if(0>>1;rcr(u,n))scr(f,u)?(e[r]=f,e[s]=n,r=s):(e[r]=u,e[o]=n,r=o);else if(scr(f,n))e[r]=f,e[s]=n,r=s;else break e}}return t}function cr(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(su=performance,F.unstable_now=function(){return su.now()}):(Hl=Date,au=Hl.now(),F.unstable_now=function(){return Hl.now()-au});var su,Hl,au,Le=[],Xe=[],Zd=1,ve=null,Z=3,pr=!1,wt=!1,mn=!1,du=typeof setTimeout=="function"?setTimeout:null,pu=typeof clearTimeout=="function"?clearTimeout:null,cu=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Vl(e){for(var t=Ee(Xe);t!==null;){if(t.callback===null)dr(Xe);else if(t.startTime<=e)dr(Xe),t.sortIndex=t.expirationTime,Bl(Le,t);else break;t=Ee(Xe)}}function $l(e){if(mn=!1,Vl(e),!wt)if(Ee(Le)!==null)wt=!0,Ql(Wl);else{var t=Ee(Xe);t!==null&&ql($l,t.startTime-e)}}function Wl(e,t){wt=!1,mn&&(mn=!1,pu(vn),vn=-1),pr=!0;var n=Z;try{for(Vl(t),ve=Ee(Le);ve!==null&&(!(ve.expirationTime>t)||e&&!vu());){var r=ve.callback;if(typeof r=="function"){ve.callback=null,Z=ve.priorityLevel;var l=r(ve.expirationTime<=t);t=F.unstable_now(),typeof l=="function"?ve.callback=l:ve===Ee(Le)&&dr(Le),Vl(t)}else dr(Le);ve=Ee(Le)}if(ve!==null)var i=!0;else{var o=Ee(Xe);o!==null&&ql($l,o.startTime-t),i=!1}return i}finally{ve=null,Z=n,pr=!1}}var hr=!1,fr=null,vn=-1,hu=5,mu=-1;function vu(){return!(F.unstable_now()-mue||125r?(e.sortIndex=n,Bl(Xe,e),Ee(Le)===null&&e===Ee(Xe)&&(mn?(pu(vn),vn=-1):mn=!0,ql($l,n-r))):(e.sortIndex=l,Bl(Le,e),wt||pr||(wt=!0,Ql(Wl))),e};F.unstable_shouldYield=vu;F.unstable_wrapCallback=function(e){var t=Z;return function(){var n=Z;Z=t;try{return e.apply(this,arguments)}finally{Z=n}}}});var wu=x((ag,yu)=>{"use strict";yu.exports=gu()});var _c=x(me=>{"use strict";var Ns=jl(),pe=wu();function v(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nt}return!1}function re(e,t,n,r,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var X={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){X[e]=new re(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];X[t]=new re(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){X[e]=new re(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){X[e]=new re(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){X[e]=new re(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){X[e]=new re(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){X[e]=new re(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){X[e]=new re(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){X[e]=new re(e,5,!1,e.toLowerCase(),null,!1,!1)});var uo=/[\-:]([a-z])/g;function so(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(uo,so);X[t]=new re(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(uo,so);X[t]=new re(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(uo,so);X[t]=new re(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){X[e]=new re(e,1,!1,e.toLowerCase(),null,!1,!1)});X.xlinkHref=new re("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){X[e]=new re(e,1,!1,e.toLowerCase(),null,!0,!0)});function ao(e,t,n,r){var l=X.hasOwnProperty(t)?X[t]:null;(l!==null?l.type!==0:r||!(2u||l[o]!==i[u]){var s=` +`+l[o].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=o&&0<=u);break}}}finally{Yl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?_n(e):""}function tp(e){switch(e.tag){case 5:return _n(e.type);case 16:return _n("Lazy");case 13:return _n("Suspense");case 19:return _n("SuspenseList");case 0:case 2:case 15:return e=Xl(e.type,!1),e;case 11:return e=Xl(e.type.render,!1),e;case 1:return e=Xl(e.type,!0),e;default:return""}}function wi(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case jt:return"Fragment";case It:return"Portal";case vi:return"Profiler";case co:return"StrictMode";case gi:return"Suspense";case yi:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ts:return(e.displayName||"Context")+".Consumer";case zs:return(e._context.displayName||"Context")+".Provider";case fo:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case po:return t=e.displayName||null,t!==null?t:wi(e.type)||"Memo";case Ge:t=e._payload,e=e._init;try{return wi(e(t))}catch(n){}}return null}function np(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return wi(t);case 8:return t===co?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ft(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ls(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function rp(e){var t=Ls(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n!="undefined"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function vr(e){e._valueTracker||(e._valueTracker=rp(e))}function Os(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ls(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Wr(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Si(e,t){var n=t.checked;return j({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function Eu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ft(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ms(e,t){t=t.checked,t!=null&&ao(e,"checked",t,!1)}function ki(e,t){Ms(e,t);var n=ft(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?xi(e,t.type,n):t.hasOwnProperty("defaultValue")&&xi(e,t.type,ft(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Cu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function xi(e,t,n){(t!=="number"||Wr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Nn=Array.isArray;function Yt(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=gr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Un(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Tn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},lp=["Webkit","ms","Moz","O"];Object.keys(Tn).forEach(function(e){lp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Tn[t]=Tn[e]})});function js(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Tn.hasOwnProperty(e)&&Tn[e]?(""+t).trim():t+"px"}function Hs(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=js(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var ip=j({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function _i(e,t){if(t){if(ip[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(v(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(v(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(v(61))}if(t.style!=null&&typeof t.style!="object")throw Error(v(62))}}function Ni(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Pi=null;function ho(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var zi=null,Xt=null,Zt=null;function Pu(e){if(e=rr(e)){if(typeof zi!="function")throw Error(v(280));var t=e.stateNode;t&&(t=yl(t),zi(e.stateNode,e.type,t))}}function Us(e){Xt?Zt?Zt.push(e):Zt=[e]:Xt=e}function As(){if(Xt){var e=Xt,t=Zt;if(Zt=Xt=null,Pu(e),t)for(e=0;e>>=0,e===0?32:31-(vp(e)/gp|0)|0}var yr=64,wr=4194304;function Pn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Yr(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var u=o&~l;u!==0?r=Pn(u):(i&=o,i!==0&&(r=Pn(i)))}else o=n&~l,o!==0?r=Pn(o):i!==0&&(r=Pn(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function tr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ze(t),e[t]=n}function kp(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ln),Iu=" ",ju=!1;function oa(e,t){switch(e){case"keyup":return Xp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ua(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ht=!1;function Gp(e,t){switch(e){case"compositionend":return ua(t);case"keypress":return t.which!==32?null:(ju=!0,Iu);case"textInput":return e=t.data,e===Iu&&ju?null:e;default:return null}}function Jp(e,t){if(Ht)return e==="compositionend"||!xo&&oa(e,t)?(e=la(),Rr=wo=tt=null,Ht=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Au(n)}}function fa(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?fa(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function da(){for(var e=window,t=Wr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch(r){n=!1}if(n)e=t.contentWindow;else break;t=Wr(e.document)}return t}function Eo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function uh(e){var t=da(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fa(n.ownerDocument.documentElement,n)){if(r!==null&&Eo(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=Bu(n,i);var o=Bu(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Ut=null,Di=null,Mn=null,Ri=!1;function Vu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ri||Ut==null||Ut!==Wr(r)||(r=Ut,"selectionStart"in r&&Eo(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Mn&&Qn(Mn,r)||(Mn=r,r=Gr(Di,"onSelect"),0Vt||(e.current=Bi[Vt],Bi[Vt]=null,Vt--)}function L(e,t){Vt++,Bi[Vt]=e.current,e.current=t}var dt={},ee=ht(dt),oe=ht(!1),Pt=dt;function tn(e,t){var n=e.type.contextTypes;if(!n)return dt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function ue(e){return e=e.childContextTypes,e!=null}function br(){M(oe),M(ee)}function Gu(e,t,n){if(ee.current!==dt)throw Error(v(168));L(ee,t),L(oe,n)}function ka(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(v(108,np(e)||"Unknown",l));return j({},n,r)}function el(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||dt,Pt=ee.current,L(ee,e),L(oe,oe.current),!0}function Ju(e,t,n){var r=e.stateNode;if(!r)throw Error(v(169));n?(e=ka(e,t,Pt),r.__reactInternalMemoizedMergedChildContext=e,M(oe),M(ee),L(ee,e)):M(oe),L(oe,n)}var He=null,wl=!1,oi=!1;function xa(e){He===null?He=[e]:He.push(e)}function gh(e){wl=!0,xa(e)}function mt(){if(!oi&&He!==null){oi=!0;var e=0,t=T;try{var n=He;for(T=1;e>=o,l-=o,Ue=1<<32-ze(t)+l|n<N?(W=_,_=null):W=_.sibling;var z=h(c,_,d[N],g);if(z===null){_===null&&(_=W);break}e&&_&&z.alternate===null&&t(c,_),a=i(z,a,N),C===null?E=z:C.sibling=z,C=z,_=W}if(N===d.length)return n(c,_),D&&St(c,N),E;if(_===null){for(;NN?(W=_,_=null):W=_.sibling;var Ye=h(c,_,z.value,g);if(Ye===null){_===null&&(_=W);break}e&&_&&Ye.alternate===null&&t(c,_),a=i(Ye,a,N),C===null?E=Ye:C.sibling=Ye,C=Ye,_=W}if(z.done)return n(c,_),D&&St(c,N),E;if(_===null){for(;!z.done;N++,z=d.next())z=m(c,z.value,g),z!==null&&(a=i(z,a,N),C===null?E=z:C.sibling=z,C=z);return D&&St(c,N),E}for(_=r(c,_);!z.done;N++,z=d.next())z=y(_,c,N,z.value,g),z!==null&&(e&&z.alternate!==null&&_.delete(z.key===null?N:z.key),a=i(z,a,N),C===null?E=z:C.sibling=z,C=z);return e&&_.forEach(function(Xd){return t(c,Xd)}),D&&St(c,N),E}function U(c,a,d,g){if(typeof d=="object"&&d!==null&&d.type===jt&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case mr:e:{for(var E=d.key,C=a;C!==null;){if(C.key===E){if(E=d.type,E===jt){if(C.tag===7){n(c,C.sibling),a=l(C,d.props.children),a.return=c,c=a;break e}}else if(C.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Ge&&is(E)===C.type){n(c,C.sibling),a=l(C,d.props),a.ref=kn(c,C,d),a.return=c,c=a;break e}n(c,C);break}else t(c,C);C=C.sibling}d.type===jt?(a=Nt(d.props.children,c.mode,g,d.key),a.return=c,c=a):(g=$r(d.type,d.key,d.props,null,c.mode,g),g.ref=kn(c,a,d),g.return=c,c=g)}return o(c);case It:e:{for(C=d.key;a!==null;){if(a.key===C)if(a.tag===4&&a.stateNode.containerInfo===d.containerInfo&&a.stateNode.implementation===d.implementation){n(c,a.sibling),a=l(a,d.children||[]),a.return=c,c=a;break e}else{n(c,a);break}else t(c,a);a=a.sibling}a=hi(d,c.mode,g),a.return=c,c=a}return o(c);case Ge:return C=d._init,U(c,a,C(d._payload),g)}if(Nn(d))return S(c,a,d,g);if(gn(d))return k(c,a,d,g);Fr(c,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,a!==null&&a.tag===6?(n(c,a.sibling),a=l(a,d),a.return=c,c=a):(n(c,a),a=pi(d,c.mode,g),a.return=c,c=a),o(c)):n(c,a)}return U}var rn=Fa(!0),La=Fa(!1),lr={},Ie=ht(lr),Xn=ht(lr),Zn=ht(lr);function Ct(e){if(e===lr)throw Error(v(174));return e}function Oo(e,t){switch(L(Zn,t),L(Xn,e),L(Ie,lr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ci(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ci(t,e)}M(Ie),L(Ie,t)}function ln(){M(Ie),M(Xn),M(Zn)}function Oa(e){Ct(Zn.current);var t=Ct(Ie.current),n=Ci(t,e.type);t!==n&&(L(Xn,e),L(Ie,n))}function Mo(e){Xn.current===e&&(M(Ie),M(Xn))}var R=ht(0);function ol(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ui=[];function Do(){for(var e=0;en?n:4,e(!0);var r=si.transition;si.transition={};try{e(!1),t()}finally{T=n,si.transition=r}}function Ya(){return xe().memoizedState}function kh(e,t,n){var r=at(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Xa(e))Za(t,n);else if(n=Na(e,t,n,r),n!==null){var l=ne();Te(n,e,r,l),Ga(n,t,r)}}function xh(e,t,n){var r=at(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xa(e))Za(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,u=i(o,n);if(l.hasEagerState=!0,l.eagerState=u,Fe(u,o)){var s=t.interleaved;s===null?(l.next=l,Fo(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch(f){}finally{}n=Na(e,t,l,r),n!==null&&(l=ne(),Te(n,e,r,l),Ga(n,t,r))}}function Xa(e){var t=e.alternate;return e===I||t!==null&&t===I}function Za(e,t){Dn=ul=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ga(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,vo(e,n)}}var sl={readContext:ke,useCallback:G,useContext:G,useEffect:G,useImperativeHandle:G,useInsertionEffect:G,useLayoutEffect:G,useMemo:G,useReducer:G,useRef:G,useState:G,useDebugValue:G,useDeferredValue:G,useTransition:G,useMutableSource:G,useSyncExternalStore:G,useId:G,unstable_isNewReconciler:!1},Eh={readContext:ke,useCallback:function(e,t){return Me().memoizedState=[e,t===void 0?null:t],e},useContext:ke,useEffect:us,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ur(4194308,4,$a.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ur(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ur(4,2,e,t)},useMemo:function(e,t){var n=Me();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Me();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=kh.bind(null,I,e),[r.memoizedState,e]},useRef:function(e){var t=Me();return e={current:e},t.memoizedState=e},useState:os,useDebugValue:Uo,useDeferredValue:function(e){return Me().memoizedState=e},useTransition:function(){var e=os(!1),t=e[0];return e=Sh.bind(null,e[1]),Me().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=I,l=Me();if(D){if(n===void 0)throw Error(v(407));n=n()}else{if(n=t(),q===null)throw Error(v(349));Tt&30||Ra(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,us(ja.bind(null,r,i,e),[e]),r.flags|=2048,bn(9,Ia.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Me(),t=q.identifierPrefix;if(D){var n=Ae,r=Ue;n=(r&~(1<<32-ze(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Gn++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[De]=t,e[Yn]=r,oc(e,t,!1,!1),t.stateNode=e;e:{switch(o=Ni(n,r),n){case"dialog":O("cancel",e),O("close",e),l=r;break;case"iframe":case"object":case"embed":O("load",e),l=r;break;case"video":case"audio":for(l=0;lun&&(t.flags|=128,r=!0,xn(i,!1),t.lanes=4194304)}else{if(!r)if(e=ol(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),xn(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!D)return J(t),null}else 2*A()-i.renderingStartTime>un&&n!==1073741824&&(t.flags|=128,r=!0,xn(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=A(),t.sibling=null,n=R.current,L(R,r?n&1|2:n&1),t):(J(t),null);case 22:case 23:return Qo(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ce&1073741824&&(J(t),t.subtreeFlags&6&&(t.flags|=8192)):J(t),null;case 24:return null;case 25:return null}throw Error(v(156,t.tag))}function Lh(e,t){switch(_o(t),t.tag){case 1:return ue(t.type)&&br(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ln(),M(oe),M(ee),Do(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Mo(t),null;case 13:if(M(R),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(v(340));nn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return M(R),null;case 4:return ln(),null;case 10:return To(t.type._context),null;case 22:case 23:return Qo(),null;case 24:return null;default:return null}}var Or=!1,b=!1,Oh=typeof WeakSet=="function"?WeakSet:Set,w=null;function qt(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){H(e,t,r)}else n.current=null}function bi(e,t,n){try{n()}catch(r){H(e,t,r)}}var vs=!1;function Mh(e,t){if(Ii=Xr,e=da(),Eo(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(g){n=null;break e}var o=0,u=-1,s=-1,f=0,p=0,m=e,h=null;t:for(;;){for(var y;m!==n||l!==0&&m.nodeType!==3||(u=o+l),m!==i||r!==0&&m.nodeType!==3||(s=o+r),m.nodeType===3&&(o+=m.nodeValue.length),(y=m.firstChild)!==null;)h=m,m=y;for(;;){if(m===e)break t;if(h===n&&++f===l&&(u=o),h===i&&++p===r&&(s=o),(y=m.nextSibling)!==null)break;m=h,h=m.parentNode}m=y}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(ji={focusedElem:e,selectionRange:n},Xr=!1,w=t;w!==null;)if(t=w,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,w=e;else for(;w!==null;){t=w;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var k=S.memoizedProps,U=S.memoizedState,c=t.stateNode,a=c.getSnapshotBeforeUpdate(t.elementType===t.type?k:_e(t.type,k),U);c.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var d=t.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(v(163))}}catch(g){H(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,w=e;break}w=t.return}return S=vs,vs=!1,S}function Rn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&bi(t,n,i)}l=l.next}while(l!==r)}}function xl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function eo(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function ac(e){var t=e.alternate;t!==null&&(e.alternate=null,ac(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[De],delete t[Yn],delete t[Ai],delete t[mh],delete t[vh])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function cc(e){return e.tag===5||e.tag===3||e.tag===4}function gs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||cc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function to(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Jr));else if(r!==4&&(e=e.child,e!==null))for(to(e,t,n),e=e.sibling;e!==null;)to(e,t,n),e=e.sibling}function no(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(no(e,t,n),e=e.sibling;e!==null;)no(e,t,n),e=e.sibling}var K=null,Ne=!1;function Ze(e,t,n){for(n=n.child;n!==null;)fc(e,t,n),n=n.sibling}function fc(e,t,n){if(Re&&typeof Re.onCommitFiberUnmount=="function")try{Re.onCommitFiberUnmount(hl,n)}catch(u){}switch(n.tag){case 5:b||qt(n,t);case 6:var r=K,l=Ne;K=null,Ze(e,t,n),K=r,Ne=l,K!==null&&(Ne?(e=K,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):K.removeChild(n.stateNode));break;case 18:K!==null&&(Ne?(e=K,n=n.stateNode,e.nodeType===8?ii(e.parentNode,n):e.nodeType===1&&ii(e,n),$n(e)):ii(K,n.stateNode));break;case 4:r=K,l=Ne,K=n.stateNode.containerInfo,Ne=!0,Ze(e,t,n),K=r,Ne=l;break;case 0:case 11:case 14:case 15:if(!b&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&bi(n,t,o),l=l.next}while(l!==r)}Ze(e,t,n);break;case 1:if(!b&&(qt(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){H(n,t,u)}Ze(e,t,n);break;case 21:Ze(e,t,n);break;case 22:n.mode&1?(b=(r=b)||n.memoizedState!==null,Ze(e,t,n),b=r):Ze(e,t,n);break;default:Ze(e,t,n)}}function ys(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Oh),t.forEach(function(r){var l=Vh.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Ce(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=A()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Rh(r/1960))-r,10e?16:e,nt===null)var r=!1;else{if(e=nt,nt=null,fl=0,P&6)throw Error(v(331));var l=P;for(P|=4,w=e.current;w!==null;){var i=w,o=i.child;if(w.flags&16){var u=i.deletions;if(u!==null){for(var s=0;sA()-$o?_t(e,0):Vo|=n),se(e,t)}function wc(e,t){t===0&&(e.mode&1?(t=wr,wr<<=1,!(wr&130023424)&&(wr=4194304)):t=1);var n=ne();e=We(e,t),e!==null&&(tr(e,t,n),se(e,n))}function Bh(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),wc(e,n)}function Vh(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(v(314))}r!==null&&r.delete(t),wc(e,n)}var Sc;Sc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||oe.current)ie=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ie=!1,Th(e,t,n);ie=!!(e.flags&131072)}else ie=!1,D&&t.flags&1048576&&Ea(t,nl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ar(e,t),e=t.pendingProps;var l=tn(t,ee.current);Jt(t,n),l=Io(null,t,r,e,l,n);var i=jo();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ue(r)?(i=!0,el(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Lo(t),l.updater=Sl,t.stateNode=l,l._reactInternals=t,qi(t,r,e,n),t=Xi(null,t,r,!0,i,n)):(t.tag=0,D&&i&&Co(t),te(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ar(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Wh(r),e=_e(r,e),l){case 0:t=Yi(null,t,r,e,n);break e;case 1:t=ps(null,t,r,e,n);break e;case 11:t=fs(null,t,r,e,n);break e;case 14:t=ds(null,t,r,_e(r.type,e),n);break e}throw Error(v(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:_e(r,l),Yi(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:_e(r,l),ps(e,t,r,l,n);case 3:e:{if(rc(t),e===null)throw Error(v(387));r=t.pendingProps,i=t.memoizedState,l=i.element,Pa(e,t),il(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=on(Error(v(423)),t),t=hs(e,t,r,n,l);break e}else if(r!==l){l=on(Error(v(424)),t),t=hs(e,t,r,n,l);break e}else for(fe=ot(t.stateNode.containerInfo.firstChild),de=t,D=!0,Pe=null,n=La(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(nn(),r===l){t=Qe(e,t,n);break e}te(e,t,r,n)}t=t.child}return t;case 5:return Oa(t),e===null&&$i(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,Hi(r,l)?o=null:i!==null&&Hi(r,i)&&(t.flags|=32),nc(e,t),te(e,t,o,n),t.child;case 6:return e===null&&$i(t),null;case 13:return lc(e,t,n);case 4:return Oo(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=rn(t,null,r,n):te(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:_e(r,l),fs(e,t,r,l,n);case 7:return te(e,t,t.pendingProps,n),t.child;case 8:return te(e,t,t.pendingProps.children,n),t.child;case 12:return te(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,L(rl,r._currentValue),r._currentValue=o,i!==null)if(Fe(i.value,o)){if(i.children===l.children&&!oe.current){t=Qe(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var u=i.dependencies;if(u!==null){o=i.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=Be(-1,n&-n),s.tag=2;var f=i.updateQueue;if(f!==null){f=f.shared;var p=f.pending;p===null?s.next=s:(s.next=p.next,p.next=s),f.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Wi(i.return,n,t),u.lanes|=n;break}s=s.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(v(341));o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Wi(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}te(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Jt(t,n),l=ke(l),r=r(l),t.flags|=1,te(e,t,r,n),t.child;case 14:return r=t.type,l=_e(r,t.pendingProps),l=_e(r.type,l),ds(e,t,r,l,n);case 15:return ec(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:_e(r,l),Ar(e,t),t.tag=1,ue(r)?(e=!0,el(t)):e=!1,Jt(t,n),Ta(t,r,l),qi(t,r,l,n),Xi(null,t,r,!0,e,n);case 19:return ic(e,t,n);case 22:return tc(e,t,n)}throw Error(v(156,t.tag))};function kc(e,t){return Ks(e,t)}function $h(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function we(e,t,n,r){return new $h(e,t,n,r)}function Ko(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Wh(e){if(typeof e=="function")return Ko(e)?1:0;if(e!=null){if(e=e.$$typeof,e===fo)return 11;if(e===po)return 14}return 2}function ct(e,t){var n=e.alternate;return n===null?(n=we(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function $r(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")Ko(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case jt:return Nt(n.children,l,i,t);case co:o=8,l|=8;break;case vi:return e=we(12,n,t,l|2),e.elementType=vi,e.lanes=i,e;case gi:return e=we(13,n,t,l),e.elementType=gi,e.lanes=i,e;case yi:return e=we(19,n,t,l),e.elementType=yi,e.lanes=i,e;case Fs:return Cl(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case zs:o=10;break e;case Ts:o=9;break e;case fo:o=11;break e;case po:o=14;break e;case Ge:o=16,r=null;break e}throw Error(v(130,e==null?e:typeof e,""))}return t=we(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function Nt(e,t,n,r){return e=we(7,e,r,t),e.lanes=n,e}function Cl(e,t,n,r){return e=we(22,e,r,t),e.elementType=Fs,e.lanes=n,e.stateNode={isHidden:!1},e}function pi(e,t,n){return e=we(6,e,null,t),e.lanes=n,e}function hi(e,t,n){return t=we(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Qh(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Gl(0),this.expirationTimes=Gl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Yo(e,t,n,r,l,i,o,u,s){return e=new Qh(e,t,n,u,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=we(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Lo(i),e}function qh(e,t,n){var r=3{"use strict";function Nc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Nc)}catch(e){console.error(e)}}Nc(),Pc.exports=_c()});var Mc=x((mg,Oc)=>{var Jh=Object.prototype,bh=Jh.hasOwnProperty;function em(e,t){return e!=null&&bh.call(e,t)}Oc.exports=em});var ir=x((vg,Dc)=>{var tm=Array.isArray;Dc.exports=tm});var Ic=x((gg,Rc)=>{var nm=typeof global=="object"&&global&&global.Object===Object&&global;Rc.exports=nm});var Tl=x((yg,jc)=>{var rm=Ic(),lm=typeof self=="object"&&self&&self.Object===Object&&self,im=rm||lm||Function("return this")();jc.exports=im});var Fl=x((wg,Hc)=>{var om=Tl(),um=om.Symbol;Hc.exports=um});var Vc=x((Sg,Bc)=>{var Uc=Fl(),Ac=Object.prototype,sm=Ac.hasOwnProperty,am=Ac.toString,or=Uc?Uc.toStringTag:void 0;function cm(e){var t=sm.call(e,or),n=e[or];try{e[or]=void 0;var r=!0}catch(i){}var l=am.call(e);return r&&(t?e[or]=n:delete e[or]),l}Bc.exports=cm});var Wc=x((kg,$c)=>{var fm=Object.prototype,dm=fm.toString;function pm(e){return dm.call(e)}$c.exports=pm});var Ll=x((xg,Kc)=>{var Qc=Fl(),hm=Vc(),mm=Wc(),vm="[object Null]",gm="[object Undefined]",qc=Qc?Qc.toStringTag:void 0;function ym(e){return e==null?e===void 0?gm:vm:qc&&qc in Object(e)?hm(e):mm(e)}Kc.exports=ym});var Ol=x((Eg,Yc)=>{function wm(e){return e!=null&&typeof e=="object"}Yc.exports=wm});var Ml=x((Cg,Xc)=>{var Sm=Ll(),km=Ol(),xm="[object Symbol]";function Em(e){return typeof e=="symbol"||km(e)&&Sm(e)==xm}Xc.exports=Em});var Gc=x((_g,Zc)=>{var Cm=ir(),_m=Ml(),Nm=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pm=/^\w*$/;function zm(e,t){if(Cm(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||_m(e)?!0:Pm.test(e)||!Nm.test(e)||t!=null&&e in Object(t)}Zc.exports=zm});var Jo=x((Ng,Jc)=>{function Tm(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}Jc.exports=Tm});var ef=x((Pg,bc)=>{var Fm=Ll(),Lm=Jo(),Om="[object AsyncFunction]",Mm="[object Function]",Dm="[object GeneratorFunction]",Rm="[object Proxy]";function Im(e){if(!Lm(e))return!1;var t=Fm(e);return t==Mm||t==Dm||t==Om||t==Rm}bc.exports=Im});var nf=x((zg,tf)=>{var jm=Tl(),Hm=jm["__core-js_shared__"];tf.exports=Hm});var of=x((Tg,lf)=>{var bo=nf(),rf=function(){var e=/[^.]+$/.exec(bo&&bo.keys&&bo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Um(e){return!!rf&&rf in e}lf.exports=Um});var sf=x((Fg,uf)=>{var Am=Function.prototype,Bm=Am.toString;function Vm(e){if(e!=null){try{return Bm.call(e)}catch(t){}try{return e+""}catch(t){}}return""}uf.exports=Vm});var cf=x((Lg,af)=>{var $m=ef(),Wm=of(),Qm=Jo(),qm=sf(),Km=/[\\^$.*+?()[\]{}|]/g,Ym=/^\[object .+?Constructor\]$/,Xm=Function.prototype,Zm=Object.prototype,Gm=Xm.toString,Jm=Zm.hasOwnProperty,bm=RegExp("^"+Gm.call(Jm).replace(Km,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ev(e){if(!Qm(e)||Wm(e))return!1;var t=$m(e)?bm:Ym;return t.test(qm(e))}af.exports=ev});var df=x((Og,ff)=>{function tv(e,t){return e==null?void 0:e[t]}ff.exports=tv});var eu=x((Mg,pf)=>{var nv=cf(),rv=df();function lv(e,t){var n=rv(e,t);return nv(n)?n:void 0}pf.exports=lv});var ur=x((Dg,hf)=>{var iv=eu(),ov=iv(Object,"create");hf.exports=ov});var gf=x((Rg,vf)=>{var mf=ur();function uv(){this.__data__=mf?mf(null):{},this.size=0}vf.exports=uv});var wf=x((Ig,yf)=>{function sv(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}yf.exports=sv});var kf=x((jg,Sf)=>{var av=ur(),cv="__lodash_hash_undefined__",fv=Object.prototype,dv=fv.hasOwnProperty;function pv(e){var t=this.__data__;if(av){var n=t[e];return n===cv?void 0:n}return dv.call(t,e)?t[e]:void 0}Sf.exports=pv});var Ef=x((Hg,xf)=>{var hv=ur(),mv=Object.prototype,vv=mv.hasOwnProperty;function gv(e){var t=this.__data__;return hv?t[e]!==void 0:vv.call(t,e)}xf.exports=gv});var _f=x((Ug,Cf)=>{var yv=ur(),wv="__lodash_hash_undefined__";function Sv(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=yv&&t===void 0?wv:t,this}Cf.exports=Sv});var Pf=x((Ag,Nf)=>{var kv=gf(),xv=wf(),Ev=kf(),Cv=Ef(),_v=_f();function cn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t{function Nv(){this.__data__=[],this.size=0}zf.exports=Nv});var Lf=x((Vg,Ff)=>{function Pv(e,t){return e===t||e!==e&&t!==t}Ff.exports=Pv});var sr=x(($g,Of)=>{var zv=Lf();function Tv(e,t){for(var n=e.length;n--;)if(zv(e[n][0],t))return n;return-1}Of.exports=Tv});var Df=x((Wg,Mf)=>{var Fv=sr(),Lv=Array.prototype,Ov=Lv.splice;function Mv(e){var t=this.__data__,n=Fv(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Ov.call(t,n,1),--this.size,!0}Mf.exports=Mv});var If=x((Qg,Rf)=>{var Dv=sr();function Rv(e){var t=this.__data__,n=Dv(t,e);return n<0?void 0:t[n][1]}Rf.exports=Rv});var Hf=x((qg,jf)=>{var Iv=sr();function jv(e){return Iv(this.__data__,e)>-1}jf.exports=jv});var Af=x((Kg,Uf)=>{var Hv=sr();function Uv(e,t){var n=this.__data__,r=Hv(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}Uf.exports=Uv});var Vf=x((Yg,Bf)=>{var Av=Tf(),Bv=Df(),Vv=If(),$v=Hf(),Wv=Af();function fn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t{var Qv=eu(),qv=Tl(),Kv=Qv(qv,"Map");$f.exports=Kv});var Kf=x((Zg,qf)=>{var Qf=Pf(),Yv=Vf(),Xv=Wf();function Zv(){this.size=0,this.__data__={hash:new Qf,map:new(Xv||Yv),string:new Qf}}qf.exports=Zv});var Xf=x((Gg,Yf)=>{function Gv(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}Yf.exports=Gv});var ar=x((Jg,Zf)=>{var Jv=Xf();function bv(e,t){var n=e.__data__;return Jv(t)?n[typeof t=="string"?"string":"hash"]:n.map}Zf.exports=bv});var Jf=x((bg,Gf)=>{var e0=ar();function t0(e){var t=e0(this,e).delete(e);return this.size-=t?1:0,t}Gf.exports=t0});var ed=x((e1,bf)=>{var n0=ar();function r0(e){return n0(this,e).get(e)}bf.exports=r0});var nd=x((t1,td)=>{var l0=ar();function i0(e){return l0(this,e).has(e)}td.exports=i0});var ld=x((n1,rd)=>{var o0=ar();function u0(e,t){var n=o0(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}rd.exports=u0});var od=x((r1,id)=>{var s0=Kf(),a0=Jf(),c0=ed(),f0=nd(),d0=ld();function dn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t{var ud=od(),p0="Expected a function";function tu(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(p0);var n=function(){var r=arguments,l=t?t.apply(this,r):r[0],i=n.cache;if(i.has(l))return i.get(l);var o=e.apply(this,r);return n.cache=i.set(l,o)||i,o};return n.cache=new(tu.Cache||ud),n}tu.Cache=ud;sd.exports=tu});var fd=x((i1,cd)=>{var h0=ad(),m0=500;function v0(e){var t=h0(e,function(r){return n.size===m0&&n.clear(),r}),n=t.cache;return t}cd.exports=v0});var pd=x((o1,dd)=>{var g0=fd(),y0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,w0=/\\(\\)?/g,S0=g0(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(y0,function(n,r,l,i){t.push(l?i.replace(w0,"$1"):r||n)}),t});dd.exports=S0});var md=x((u1,hd)=>{function k0(e,t){for(var n=-1,r=e==null?0:e.length,l=Array(r);++n{var vd=Fl(),x0=md(),E0=ir(),C0=Ml(),_0=1/0,gd=vd?vd.prototype:void 0,yd=gd?gd.toString:void 0;function wd(e){if(typeof e=="string")return e;if(E0(e))return x0(e,wd)+"";if(C0(e))return yd?yd.call(e):"";var t=e+"";return t=="0"&&1/e==-_0?"-0":t}Sd.exports=wd});var Ed=x((a1,xd)=>{var N0=kd();function P0(e){return e==null?"":N0(e)}xd.exports=P0});var _d=x((c1,Cd)=>{var z0=ir(),T0=Gc(),F0=pd(),L0=Ed();function O0(e,t){return z0(e)?e:T0(e,t)?[e]:F0(L0(e))}Cd.exports=O0});var Pd=x((f1,Nd)=>{var M0=Ll(),D0=Ol(),R0="[object Arguments]";function I0(e){return D0(e)&&M0(e)==R0}Nd.exports=I0});var Ld=x((d1,Fd)=>{var zd=Pd(),j0=Ol(),Td=Object.prototype,H0=Td.hasOwnProperty,U0=Td.propertyIsEnumerable,A0=zd(function(){return arguments}())?zd:function(e){return j0(e)&&H0.call(e,"callee")&&!U0.call(e,"callee")};Fd.exports=A0});var Md=x((p1,Od)=>{var B0=9007199254740991,V0=/^(?:0|[1-9]\d*)$/;function $0(e,t){var n=typeof e;return t=t==null?B0:t,!!t&&(n=="number"||n!="symbol"&&V0.test(e))&&e>-1&&e%1==0&&e{var W0=9007199254740991;function Q0(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=W0}Dd.exports=Q0});var jd=x((m1,Id)=>{var q0=Ml(),K0=1/0;function Y0(e){if(typeof e=="string"||q0(e))return e;var t=e+"";return t=="0"&&1/e==-K0?"-0":t}Id.exports=Y0});var Ud=x((v1,Hd)=>{var X0=_d(),Z0=Ld(),G0=ir(),J0=Md(),b0=Rd(),eg=jd();function tg(e,t,n){t=X0(t,e);for(var r=-1,l=t.length,i=!1;++r{var ng=Mc(),rg=Ud();function lg(e,t){return e!=null&&rg(e,t,ng)}Ad.exports=lg});function Fc(e="This should not happen"){throw new Error(e)}function dg(e,t="Assertion failed"){if(!e)return Fc(t)}function Lc(e,t){return Fc(t!=null?t:"Hell froze over")}function pg(e,t){try{return e()}catch(n){return t}}var zc=Object.prototype.hasOwnProperty;function Tc(e,t){let n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Tc(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(zc.call(e,n)&&++r&&!zc.call(t,n)||!(n in t)||!Tc(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}var Qd=Il(Bd(),1);var S1=null,k1=void 0,ae;(function(e){e.Uri="uri",e.Text="text",e.Image="image",e.RowID="row-id",e.Number="number",e.Bubble="bubble",e.Boolean="boolean",e.Loading="loading",e.Markdown="markdown",e.Drilldown="drilldown",e.Protected="protected",e.Custom="custom"})(ae||(ae={}));var Vd;(function(e){e.HeaderRowID="headerRowID",e.HeaderCode="headerCode",e.HeaderNumber="headerNumber",e.HeaderString="headerString",e.HeaderBoolean="headerBoolean",e.HeaderAudioUri="headerAudioUri",e.HeaderVideoUri="headerVideoUri",e.HeaderEmoji="headerEmoji",e.HeaderImage="headerImage",e.HeaderUri="headerUri",e.HeaderPhone="headerPhone",e.HeaderMarkdown="headerMarkdown",e.HeaderDate="headerDate",e.HeaderTime="headerTime",e.HeaderEmail="headerEmail",e.HeaderReference="headerReference",e.HeaderIfThenElse="headerIfThenElse",e.HeaderSingleValue="headerSingleValue",e.HeaderLookup="headerLookup",e.HeaderTextTemplate="headerTextTemplate",e.HeaderMath="headerMath",e.HeaderRollup="headerRollup",e.HeaderJoinStrings="headerJoinStrings",e.HeaderSplitString="headerSplitString",e.HeaderGeoDistance="headerGeoDistance",e.HeaderArray="headerArray",e.RowOwnerOverlay="rowOwnerOverlay",e.ProtectedColumnOverlay="protectedColumnOverlay"})(Vd||(Vd={}));var $d;(function(e){e.Triangle="triangle",e.Dots="dots"})($d||($d={}));function x1(e){return"width"in e&&typeof e.width=="number"}async function E1(e){return typeof e=="object"?e:await e()}function ig(e){return e.kind===ae.Loading||e.kind===ae.Bubble||e.kind===ae.RowID||e.kind===ae.Protected||e.kind===ae.Drilldown?!1:!0}function C1(e){return e.kind===Rl.Marker||e.kind===Rl.NewRow}function _1(e){if(!ig(e)||e.kind===ae.Image)return!1;if(e.kind===ae.Text||e.kind===ae.Number||e.kind===ae.Markdown||e.kind===ae.Uri||e.kind===ae.Custom||e.kind===ae.Boolean)return e.readonly!==!0;Lc(e,"A cell was passed with an invalid kind")}function N1(e){return(0,Qd.default)(e,"editor")}function P1(e){var t;return!((t=e.readonly)!=null&&t)}var Rl;(function(e){e.NewRow="new-row",e.Marker="marker"})(Rl||(Rl={}));function og(e){if(e.length===0)return[];let t=[...e],n=[];t.sort(function(r,l){return r[0]-l[0]}),n.push([...t[0]]);for(let r of t.slice(1)){let l=n[n.length-1];l[1][r[0]+t,r[1]+t]);return new Ke(n)}add(t){let n=typeof t=="number"?[t,t+1]:t,r=og([...this.items,n]);return new Ke(r)}remove(t){let n=[...this.items],r=typeof t=="number"?t:t[0],l=typeof t=="number"?t+1:t[1];for(let[i,o]of n.entries()){let[u,s]=o;if(u<=l&&r<=s){let f=[];u=r&&tDl!=null?Dl:Dl=new Ke([])),yt(Ke,"fromSingleSelection",t=>Ke.empty().add(t));var Wd=Ke;var Kd=Il(jl(),1);var nu={},vt=null;function ug(){let e=document.createElement("div");return e.style.opacity="0",e.style.pointerEvents="none",e.style.position="fixed",document.body.append(e),e}function ru(e){let t=e.toLowerCase().trim();if(nu[t]!==void 0)return nu[t];vt=vt||ug(),vt.style.color="#000",vt.style.color=t;let n=getComputedStyle(vt).color;vt.style.color="#fff",vt.style.color=t;let r=getComputedStyle(vt).color;if(r!==n)return[0,0,0,1];let l=r.replace(/[^\d.,]/g,"").split(",").map(Number.parseFloat);return l.length<4&&l.push(1),l=l.map(i=>Number.isNaN(i)?0:i),nu[t]=l,l}function F1(e,t){let[n,r,l]=ru(e);return`rgba(${n}, ${r}, ${l}, ${t})`}var qd=new Map;function L1(e,t){let n=`${e}-${t}`,r=qd.get(n);if(r!==void 0)return r;let l=lu(e,t);return qd.set(n,l),l}function lu(e,t){if(t===void 0)return e;let[n,r,l,i]=ru(e);if(i===1)return e;let[o,u,s,f]=ru(t),p=i+f*(1-i),m=(i*n+f*o*(1-i))/p,h=(i*r+f*u*(1-i))/p,y=(i*l+f*s*(1-i))/p;return`rgba(${m}, ${h}, ${y}, ${p})`}function D1(e){var t,n;return gt(gt(gt({"--gdg-accent-color":e.accentColor,"--gdg-accent-fg":e.accentFg,"--gdg-accent-light":e.accentLight,"--gdg-text-dark":e.textDark,"--gdg-text-medium":e.textMedium,"--gdg-text-light":e.textLight,"--gdg-text-bubble":e.textBubble,"--gdg-bg-icon-header":e.bgIconHeader,"--gdg-fg-icon-header":e.fgIconHeader,"--gdg-text-header":e.textHeader,"--gdg-text-group-header":(t=e.textGroupHeader)!=null?t:e.textHeader,"--gdg-text-header-selected":e.textHeaderSelected,"--gdg-bg-cell":e.bgCell,"--gdg-bg-cell-medium":e.bgCellMedium,"--gdg-bg-header":e.bgHeader,"--gdg-bg-header-has-focus":e.bgHeaderHasFocus,"--gdg-bg-header-hovered":e.bgHeaderHovered,"--gdg-bg-bubble":e.bgBubble,"--gdg-bg-bubble-selected":e.bgBubbleSelected,"--gdg-bg-search-result":e.bgSearchResult,"--gdg-border-color":e.borderColor,"--gdg-horizontal-border-color":(n=e.horizontalBorderColor)!=null?n:e.borderColor,"--gdg-drilldown-border":e.drilldownBorder,"--gdg-link-color":e.linkColor,"--gdg-cell-horizontal-padding":`${e.cellHorizontalPadding}px`,"--gdg-cell-vertical-padding":`${e.cellVerticalPadding}px`,"--gdg-header-font-style":e.headerFontStyle,"--gdg-base-font-style":e.baseFontStyle,"--gdg-marker-font-style":e.markerFontStyle,"--gdg-font-family":e.fontFamily,"--gdg-editor-font-size":e.editorFontSize},e.resizeIndicatorColor===void 0?{}:{"--gdg-resize-indicator-color":e.resizeIndicatorColor}),e.headerBottomBorderColor===void 0?{}:{"--gdg-header-bottom-border-color":e.headerBottomBorderColor}),e.roundingRadius===void 0?{}:{"--gdg-rounding-radius":`${e.roundingRadius}px`})}var Yd={accentColor:"#4F5DFF",accentFg:"#FFFFFF",accentLight:"rgba(62, 116, 253, 0.1)",textDark:"#313139",textMedium:"#737383",textLight:"#B2B2C0",textBubble:"#313139",bgIconHeader:"#737383",fgIconHeader:"#FFFFFF",textHeader:"#313139",textGroupHeader:"#313139BB",textHeaderSelected:"#FFFFFF",bgCell:"#FFFFFF",bgCellMedium:"#FAFAFB",bgHeader:"#F7F7F8",bgHeaderHasFocus:"#E9E9EB",bgHeaderHovered:"#EFEFF1",bgBubble:"#EDEDF3",bgBubbleSelected:"#FFFFFF",bgSearchResult:"#fff9e3",borderColor:"rgba(115, 116, 131, 0.16)",drilldownBorder:"rgba(0, 0, 0, 0)",linkColor:"#353fb5",cellHorizontalPadding:8,cellVerticalPadding:3,headerIconSize:18,headerFontStyle:"600 13px",baseFontStyle:"13px",markerFontStyle:"9px",fontFamily:"Inter, Roboto, -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Ubuntu, noto, arial, sans-serif",editorFontSize:"13px",lineHeight:1.4};function R1(){return Yd}var I1=Kd.default.createContext(Yd);function j1(e,...t){let n=gt({},e);for(let r of t)if(r!==void 0)for(let l in r)r.hasOwnProperty(l)&&(l==="bgCell"?n[l]=lu(r[l],n[l]):n[l]=r[l]);return(n.headerFontFull===void 0||e.fontFamily!==n.fontFamily||e.headerFontStyle!==n.headerFontStyle)&&(n.headerFontFull=`${n.headerFontStyle} ${n.fontFamily}`),(n.baseFontFull===void 0||e.fontFamily!==n.fontFamily||e.baseFontStyle!==n.baseFontStyle)&&(n.baseFontFull=`${n.baseFontStyle} ${n.fontFamily}`),(n.markerFontFull===void 0||e.fontFamily!==n.fontFamily||e.markerFontStyle!==n.markerFontStyle)&&(n.markerFontFull=`${n.markerFontStyle} ${n.fontFamily}`),n}var pn=Il(jl(),1);var iu=class extends pn.PureComponent{constructor(){super(...arguments);yt(this,"wrapperRef",pn.createRef());yt(this,"clickOutside",n=>{if(!(this.props.isOutsideClick&&!this.props.isOutsideClick(n))&&this.wrapperRef.current!==null&&!this.wrapperRef.current.contains(n.target)){let r=n.target;for(;r!==null;){if(r.classList.contains("click-outside-ignore"))return;r=r.parentElement}this.props.onClickOutside()}})}componentDidMount(){document.addEventListener("touchend",this.clickOutside,!0),document.addEventListener("mousedown",this.clickOutside,!0),document.addEventListener("contextmenu",this.clickOutside,!0)}componentWillUnmount(){document.removeEventListener("touchend",this.clickOutside,!0),document.removeEventListener("mousedown",this.clickOutside,!0),document.removeEventListener("contextmenu",this.clickOutside,!0)}render(){let i=this.props,{onClickOutside:n,isOutsideClick:r}=i,l=uu(i,["onClickOutside","isOutsideClick"]);return pn.createElement("div",ou(gt({},l),{ref:this.wrapperRef}),this.props.children)}};export{Gh as a,dg as b,Lc as c,pg as d,Tc as e,ir as f,Ic as g,Tl as h,Fl as i,Ll as j,Ol as k,Ml as l,Gc as m,Jo as n,ef as o,sf as p,eu as q,Lf as r,Vf as s,Wf as t,od as u,_d as v,Ld as w,Md as x,Rd as y,jd as z,Ud as A,S1 as B,k1 as C,ae as D,Vd as E,$d as F,x1 as G,E1 as H,ig as I,C1 as J,_1 as K,N1 as L,P1 as M,Rl as N,Wd as O,F1 as P,L1 as Q,lu as R,D1 as S,R1 as T,I1 as U,j1 as V,iu as W}; +/*! Bundled license information: + +scheduler/cjs/scheduler.production.min.js: + (** + * @license React + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + *) + +react-dom/cjs/react-dom.production.min.js: + (** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + *) +*/ diff --git a/lib/assets/data_table/build/chunk-RVIU7NCN.js b/lib/assets/data_table/build/chunk-RVIU7NCN.js deleted file mode 100644 index 60f59a4a..00000000 --- a/lib/assets/data_table/build/chunk-RVIU7NCN.js +++ /dev/null @@ -1,14 +0,0 @@ -var re=Object.create;var w=Object.defineProperty,ne=Object.defineProperties,oe=Object.getOwnPropertyDescriptor,ie=Object.getOwnPropertyDescriptors,se=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols,ae=Object.getPrototypeOf,C=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var M=(e,t,r)=>t in e?w(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,je=(e,t)=>{for(var r in t||(t={}))C.call(t,r)&&M(e,r,t[r]);if(g)for(var r of g(t))N.call(t,r)&&M(e,r,t[r]);return e},Ie=(e,t)=>ne(e,ie(t));var Le=(e,t)=>{var r={};for(var n in e)C.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&g)for(var n of g(e))t.indexOf(n)<0&&N.call(e,n)&&(r[n]=e[n]);return r};var U=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var le=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of se(t))!C.call(e,o)&&o!==r&&w(e,o,{get:()=>t[o],enumerable:!(n=oe(t,o))||n.enumerable});return e};var ce=(e,t,r)=>(r=e!=null?re(ae(e)):{},le(t||!e||!e.__esModule?w(r,"default",{value:e,enumerable:!0}):r,e));var K=U(i=>{"use strict";var m=Symbol.for("react.element"),ue=Symbol.for("react.portal"),fe=Symbol.for("react.fragment"),pe=Symbol.for("react.strict_mode"),de=Symbol.for("react.profiler"),ye=Symbol.for("react.provider"),me=Symbol.for("react.context"),he=Symbol.for("react.forward_ref"),ge=Symbol.for("react.suspense"),ve=Symbol.for("react.memo"),ke=Symbol.for("react.lazy"),D=Symbol.iterator;function _e(e){return e===null||typeof e!="object"?null:(e=D&&e[D]||e["@@iterator"],typeof e=="function"?e:null)}var q={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z=Object.assign,F={};function d(e,t,r){this.props=e,this.context=t,this.refs=F,this.updater=r||q}d.prototype.isReactComponent={};d.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};d.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function B(){}B.prototype=d.prototype;function E(e,t,r){this.props=e,this.context=t,this.refs=F,this.updater=r||q}var P=E.prototype=new B;P.constructor=E;z(P,d.prototype);P.isPureReactComponent=!0;var H=Array.isArray,W=Object.prototype.hasOwnProperty,A={current:null},X={key:!0,ref:!0,__self:!0,__source:!0};function Y(e,t,r){var n,o={},s=null,c=null;if(t!=null)for(n in t.ref!==void 0&&(c=t.ref),t.key!==void 0&&(s=""+t.key),t)W.call(t,n)&&!X.hasOwnProperty(n)&&(o[n]=t[n]);var l=arguments.length-2;if(l===1)o.children=r;else if(1{"use strict";G.exports=K()});var h=ce(J(),1);function Ce(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Re=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,T=Ce(function(e){return Re.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Ee=function(){let t=Array.prototype.slice.call(arguments).filter(Boolean),r={},n=[];t.forEach(s=>{(s?s.split(" "):[]).forEach(l=>{if(l.startsWith("atm_")){let[,a]=l.split("_");r[a]=l}else n.push(l)})});let o=[];for(let s in r)Object.prototype.hasOwnProperty.call(r,s)&&o.push(r[s]);return o.push(...n),o.join(" ")},Q=Ee,Pe=e=>e.toUpperCase()===e,Ae=e=>t=>e.indexOf(t)===-1,Z=(e,t)=>{let r={};return Object.keys(e).filter(Ae(t)).forEach(n=>{r[n]=e[n]}),r};function Oe(e,t,r){let n=Z(t,r);if(!e){let o=typeof T=="function"?{default:T}:T;Object.keys(n).forEach(s=>{o.default(s)||delete n[s]})}return n}var Te=(e,t)=>{{if(typeof e=="string"||typeof e=="number"&&isFinite(e))return;let r=typeof e=="object"?JSON.stringify(e):String(e);console.warn(`An interpolation evaluated to '${r}' in the component '${t}', which is probably a mistake. You should explicitly cast or transform the value to a string.`)}};function $e(e){var t;let r="";return n=>{if(Array.isArray(n))throw new Error('Using the "styled" tag in runtime is not supported. Make sure you have set up the Babel plugin correctly. See https://github.com/callstack/linaria#setup');let o=(c,l)=>{let{as:a=e,class:f=r}=c,ee=n.propsAsIs===void 0?!(typeof a=="string"&&a.indexOf("-")===-1&&!Pe(a[0])):n.propsAsIs,p=Oe(ee,c,["as","class"]);p.ref=l,p.className=n.atomic?Q(n.class,p.className||f):Q(p.className||f,n.class);let{vars:x}=n;if(x){let S={};for(let y in x){let I=x[y],b=I[0],te=I[1]||"",L=typeof b=="function"?b(c):b;Te(L,n.name),S[`--${y}`]=`${L}${te}`}let $=p.style||{},j=Object.keys($);j.length>0&&j.forEach(y=>{S[y]=$[y]}),p.style=S}return e.__linaria&&e!==a?(p.as=a,h.default.createElement(e,p)):h.default.createElement(a,p)},s=h.default.forwardRef?h.default.forwardRef(o):c=>{let l=Z(c,["innerRef"]);return o(l,c.innerRef)};return s.displayName=n.name,s.__linaria={className:n.class||r,extends:e},s}}var De=new Proxy($e,{get(e,t){return e(t)}});export{je as a,Ie as b,Le as c,U as d,ce as e,J as f,De as g}; -/*! Bundled license information: - -react/cjs/react.production.min.js: - (** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - *) -*/ diff --git a/lib/assets/data_table/build/data-grid-overlay-editor-LA45TJRM.js b/lib/assets/data_table/build/data-grid-overlay-editor-LA45TJRM.js new file mode 100644 index 00000000..11fd814b --- /dev/null +++ b/lib/assets/data_table/build/data-grid-overlay-editor-LA45TJRM.js @@ -0,0 +1 @@ +import{I as b,J as q,L as B,S as $,U as z,W as J,a as ce}from"./chunk-7E2MHSGD.js";import{a as M,e as G,g as j,h as L}from"./chunk-2HCNYJTW.js";var r=G(j(),1),V=G(ce(),1);var le=()=>t=>t.targetX,ue=()=>t=>t.targetY,fe=()=>t=>t.targetWidth,ge=()=>t=>t.targetHeight,me=()=>t=>t.targetY+10,pe=()=>t=>Math.max(0,(t.targetHeight-28)/2),Q=L("div")({name:"DataGridOverlayEditorStyle",class:"gdg-d19meir1",propsAsIs:!1,vars:{"d19meir1-0":[ue(),"px"],"d19meir1-1":[le(),"px"],"d19meir1-2":[fe(),"px"],"d19meir1-3":[ge(),"px"],"d19meir1-4":[me(),"px"],"d19meir1-5":[pe(),"px"]}});var s=G(j(),1);function ye(){let[t,o]=s.useState();return[t!=null?t:void 0,o]}function U(){let[t,o]=ye(),[n,h]=s.useState(0),[p,S]=s.useState(!0);s.useLayoutEffect(()=>{if(t===void 0||!("IntersectionObserver"in window))return;let d=new IntersectionObserver(c=>{c.length!==0&&S(c[0].isIntersecting)},{threshold:1});return d.observe(t),()=>d.disconnect()},[t]),s.useEffect(()=>{if(p||t===void 0)return;let d,c=()=>{let{right:v}=t.getBoundingClientRect();h(y=>Math.min(y+window.innerWidth-v-10,0)),d=requestAnimationFrame(c)};return d=requestAnimationFrame(c),()=>{d!==void 0&&cancelAnimationFrame(d)}},[t,p]);let k=s.useMemo(()=>({transform:`translateX(${n}px)`}),[n]);return{ref:o,style:k}}var Re=t=>{var W,Y;let{target:o,content:n,onFinishEditing:h,forceEditMode:p,initialValue:S,imageEditorOverride:k,markdownDivCreateNode:d,highlight:c,className:v,theme:y,id:Z,cell:D,bloom:f,validateCell:l,getCellRenderer:N,provideEditor:E,isOutsideClick:ee}=t,[a,te]=r.useState(p?n:void 0),I=r.useRef(a!=null?a:n);I.current=a!=null?a:n;let[O,w]=r.useState(()=>l===void 0?!0:!(b(n)&&(l==null?void 0:l(D,n,I.current))===!1)),g=r.useCallback((e,i)=>{h(O?e:void 0,i)},[O,h]),re=r.useCallback(e=>{if(l!==void 0&&e!==void 0&&b(e)){let i=l(D,e,I.current);i===!1?w(!1):(typeof i=="object"&&(e=i),w(!0))}te(e)},[D,l]),C=r.useRef(!1),m=r.useRef(void 0),ie=r.useCallback(()=>{g(a,[0,0]),C.current=!0},[a,g]),ne=r.useCallback((e,i)=>{var R;g(e,(R=i!=null?i:m.current)!=null?R:[0,0]),C.current=!0},[g]),ae=r.useCallback(async e=>{let i=!1;e.key==="Escape"?(e.stopPropagation(),e.preventDefault(),m.current=[0,0]):e.key==="Enter"&&!e.shiftKey?(e.stopPropagation(),e.preventDefault(),m.current=[0,1],i=!0):e.key==="Tab"&&(e.stopPropagation(),e.preventDefault(),m.current=[e.shiftKey?-1:1,0],i=!0),window.setTimeout(()=>{!C.current&&m.current!==void 0&&(g(i?a:void 0,m.current),C.current=!0)},0)},[g,a]),F=a!=null?a:n,[u,se]=r.useMemo(()=>{var i,R;if(q(n))return[];let e=E==null?void 0:E(n);return e!==void 0?[e,!1]:[(R=(i=N(n))==null?void 0:i.provideEditor)==null?void 0:R.call(i,n),!1]},[n,N,E]),{ref:oe,style:de}=U(),_=!0,H,T=!0,x;if(u!==void 0){_=u.disablePadding!==!0,T=u.disableStyling!==!0;let e=B(u);e&&(x=u.styleOverride);let i=e?u.editor:u;H=r.createElement(i,{isHighlighted:c,onChange:re,value:F,initialValue:S,onFinishedEditing:ne,validatedSelection:b(F)?F.selectionRange:void 0,forceEditMode:p,target:o,imageEditorOverride:k,markdownDivCreateNode:d,isValid:O,theme:y})}x=M(M({},x),de);let X=document.getElementById("portal");if(X===null)return console.error('Cannot open Data Grid overlay editor, because portal not found. Please add `
` as the last child of your ``.'),null;let P=T?"gdg-style":"gdg-unstyle";O||(P+=" gdg-invalid"),_&&(P+=" gdg-pad");let A=(W=f==null?void 0:f[0])!=null?W:1,K=(Y=f==null?void 0:f[1])!=null?Y:1;return(0,V.createPortal)(r.createElement(z.Provider,{value:y},r.createElement(J,{style:$(y),className:v,onClickOutside:ie,isOutsideClick:ee},r.createElement(Q,{ref:oe,id:Z,className:P,style:x,as:se===!0?"label":void 0,targetX:o.x-A,targetY:o.y-K,targetWidth:o.width+A*2,targetHeight:o.height+K*2},r.createElement("div",{className:"gdg-clip-region",onKeyDown:ae},H)))),X)},ve=Re;export{ve as default}; diff --git a/lib/assets/data_table/build/main.css b/lib/assets/data_table/build/main.css index af5a9c02..6fa81d72 100644 --- a/lib/assets/data_table/build/main.css +++ b/lib/assets/data_table/build/main.css @@ -1 +1 @@ -*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e1e8f0}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:JetBrains Mono,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#91a4b7}input::placeholder,textarea::placeholder{opacity:1;color:#91a4b7}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(101 131 255 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(101 131 255 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.pointer-events-none{pointer-events:none}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.inset-y-0{top:0;bottom:0}.right-0{right:0}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-6{margin-bottom:1.5rem}.ml-2{margin-left:.5rem}.ml-2\.5{margin-left:.625rem}.inline-block{display:inline-block}.flex{display:flex}.w-48{width:12rem}.w-full{width:100%}.max-w-full{max-width:100%}.grow{flex-grow:1}.cursor-pointer{cursor:pointer}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-col{flex-direction:column}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-3{gap:.75rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-b-md{border-bottom-right-radius:.375rem;border-bottom-left-radius:.375rem}.border{border-width:1px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(225 232 240 / var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity: 1;border-color:rgb(145 164 183 / var(--tw-border-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.pr-7{padding-right:1.75rem}.font-sans{font-family:Inter}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-none{line-height:1}.text-gray-500{--tw-text-opacity: 1;color:rgb(97 117 138 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(48 66 84 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(28 42 58 / var(--tw-text-opacity))}.opacity-0{opacity:0}.shadow-\[0_2px_10px_rgb\(0\,0\,0\,0\.15\)\]{--tw-shadow: 0 2px 10px rgb(0,0,0,.15);--tw-shadow-colored: 0 2px 10px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.tooltip{position:relative;display:flex;--distance: 4px;--arrow-size: 5px;--show-delay: .5s}.tooltip:before{position:absolute;content:attr(data-tooltip);white-space:pre;text-align:center;display:block;z-index:100;background-color:#1c273c;color:#f0f5f9;font-size:12px;font-weight:500;border-radius:4px;padding:3px 12px;visibility:hidden;transition-property:visibility;transition-duration:0s;transition-delay:0s}.tooltip:after{content:"";position:absolute;display:block;z-index:100;border-width:var(--arrow-size);border-style:solid;border-color:#1c273c;visibility:hidden;transition-property:visibility;transition-duration:0s;transition-delay:0s}.tooltip:hover:before{visibility:visible;transition-delay:var(--show-delay)}.tooltip:hover:after{visibility:visible;transition-delay:var(--show-delay)}.tooltip.right:before{top:50%;left:100%;transform:translate(calc(var(--arrow-size) - 1px + var(--distance)),-50%)}.tooltip.right:after{top:50%;left:100%;transform:translate(var(--distance),-50%);border-left:none;border-top-color:transparent;border-bottom-color:transparent}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(225 232 240 / var(--tw-bg-opacity))}.hover\:text-gray-800:hover{--tw-text-opacity: 1;color:rgb(28 42 58 / var(--tw-text-opacity))}.hover\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(13 24 41 / var(--tw-text-opacity))}.focus\:bg-gray-100:focus{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-default:disabled{cursor:default}.disabled\:text-gray-300:disabled{--tw-text-opacity: 1;color:rgb(202 213 224 / var(--tw-text-opacity))}.d1t1th9s{position:absolute;display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box;--overlay-top:var(--d1t1th9s-0);left:var(--d1t1th9s-1);top:var(--d1t1th9s-2);min-width:var(--d1t1th9s-3);min-height:var(--d1t1th9s-4);width:-moz-max-content;width:max-content;max-width:400px;max-height:calc(100vh - var(--d1t1th9s-5));font-family:var(--gdg-font-family);font-size:var(--gdg-editor-font-size);text-align:start}@keyframes glide_fade_in-d1t1th9s{0%{opacity:0%}to{opacity:100%}}.d1t1th9s.gdg-style{border-radius:2px;background-color:var(--gdg-bg-cell);box-shadow:0 0 0 1px var(--gdg-accent-color),0 0 1px #3e415666,0 6px 12px #3e415626;animation:glide_fade_in-d1t1th9s 60ms 1}.d1t1th9s.pad{padding:var(--d1t1th9s-6) 8.5px 3px}.d1t1th9s .clip-region{display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;border-radius:2px;flex-grow:1}.d1t1th9s .clip-region .gdg-growing-entry{height:100%}.d1t1th9s .clip-region input.gdg-input{width:100%;border:none;border-width:0;outline:none}.d1t1th9s .clip-region textarea.gdg-input{border:none;border-width:0;outline:none}.m15w2ly5{position:absolute;right:44px;bottom:44px;background-color:var(--gdg-bg-cell);background:linear-gradient(var(--gdg-bg-cell),var(--gdg-bg-cell-medium));border-radius:4px;z-index:1;box-shadow:0 0 0 1px var(--gdg-border-color),0 2px 5px #00000014;overflow:hidden}.m15w2ly5 .header{position:absolute;left:0;top:0;width:100%;height:4px;background-color:var(--gdg-bg-header);box-shadow:0 0 0 1px var(--gdg-border-color)}.m15w2ly5 .locationMarker{position:absolute;border:1px solid var(--gdg-accent-color);background-color:var(--gdg-accent-light)}.s1jz82f8 .dvn-scroller{overflow:var(--s1jz82f8-0);transform:translateZ(0)}.s1jz82f8 .hidden{visibility:hidden}.s1jz82f8 .dvn-scroll-inner{display:flex;pointer-events:none}.s1jz82f8 .dvn-scroll-inner>*{flex-shrink:0}.s1jz82f8 .dvn-scroll-inner .dvn-spacer{flex-grow:1}.s1jz82f8 .dvn-scroll-inner .dvn-stack{display:flex;flex-direction:column}.s1jz82f8 .dvn-underlay>*{position:absolute;left:0;top:0}.s1jz82f8 canvas{outline:none}.s1jz82f8 canvas *{height:0}.sxep88s{position:absolute;top:4px;right:20px;background-color:var(--gdg-bg-cell);color:var(--gdg-text-dark);padding:8px;border:1px solid var(--gdg-border-color);border-radius:6px;font-size:var(--gdg-editor-font-size);transform:translate(var(--sxep88s-0));transition:transform .15s}.sxep88s .search-bar-inner{display:flex}.sxep88s .search-status{padding-top:4px;font-size:11px}.sxep88s .search-progress{position:absolute;height:4px;left:0;bottom:0;background-color:var(--gdg-text-light)}.sxep88s input{width:220px;color:var(--gdg-textDark);background-color:var(--gdg-bg-cell);border:none;border-width:0;outline:none}.sxep88s button{width:24px;height:24px;padding:0;border:none;outline:none;background:none;display:flex;justify-content:center;align-items:center;cursor:pointer;color:var(--gdg-text-medium)}.sxep88s button:hover{color:var(--gdg-text-dark)}.sxep88s button .button-icon{width:16px;height:16px}.sxep88s button:disabled{opacity:.4;pointer-events:none}.r1kzy40b{flex-grow:1;border:none;outline:none;background-color:var(--gdg-bg-header-has-focus);border-radius:9px;padding:0 8px;box-shadow:0 0 0 1px var(--gdg-border-color);color:var(--gdg-text-group-header);min-height:var(--r1kzy40b-0);font:var(--gdg-header-font-style) var(--gdg-font-family)}.c1sqdbw3{padding:0 8px;display:flex;align-items:center;background-color:var(--gdg-bg-header)}.wzg2m5k{position:relative;min-width:10px;min-height:10px;max-width:100%;max-height:100%;width:var(--wzg2m5k-0);height:var(--wzg2m5k-1);overflow:hidden;overflow:clip;contain:strict;direction:ltr}.wzg2m5k>:first-child{position:absolute;left:0;top:0;width:100%;height:100%}.b1bqsp5z{display:flex;flex-wrap:wrap}.b1bqsp5z .boe-bubble{display:flex;justify-content:center;align-items:center;border-radius:100px;padding:0 8px;height:20px;background-color:var(--gdg-bg-bubble);color:var(--gdg-text-dark);margin:2px}.b1bqsp5z textarea{position:absolute;top:0;left:0;width:0px;height:0px;opacity:0}.df2kt4a{display:flex;flex-wrap:wrap}.df2kt4a .doe-bubble{display:flex;justify-content:center;align-items:center;padding:0 8px;height:24px;background-color:var(--gdg-bg-cell);color:var(--gdg-text-dark);margin:2px;border-radius:6px;box-shadow:0 0 1px #3e415666,0 1px 3px #3e415666}.df2kt4a .doe-bubble img{height:16px;-o-object-fit:contain;object-fit:contain;margin-right:4px}.df2kt4a textarea{position:absolute;top:0;left:0;width:0px;height:0px;opacity:0}.i1eozt10{display:flex;height:100%}.i1eozt10 .centering-container{display:flex;justify-content:center;align-items:center;height:100%}.i1eozt10 .centering-container img,.i1eozt10 .centering-container canvas{max-height:calc(100vh - var(--overlay-top) - 20px);-o-object-fit:contain;object-fit:contain;-webkit-user-select:none;-moz-user-select:none;user-select:none}.i1eozt10 .centering-container canvas{max-width:380px}.i1eozt10 .edit-icon{position:absolute;top:12px;right:0;width:48px;height:48px;color:var(--gdg-accent-color);cursor:pointer;display:flex;justify-content:center;align-items:center}.i1eozt10 .edit-icon>*{width:24px;height:24px}.i1eozt10 textarea{position:absolute;top:0;left:0;width:0px;height:0px;opacity:0}.mlbeo71{word-break:break-word;-webkit-touch-callout:default;padding-top:6px}.mlbeo71>*{margin:0}.mlbeo71 *:last-child{margin-bottom:0}.mlbeo71 p img{width:100%}.ijuk0po{position:absolute;inset:0;width:100%;height:100%;border-radius:0;resize:none;white-space:pre-wrap;min-width:100%;overflow:hidden;border:0;background-color:transparent;font-size:var(--gdg-editor-font-size);line-height:16px;font-family:var(--gdg-font-family);color:var(--gdg-text-dark);padding:0;margin:0}.ijuk0po::-moz-placeholder{color:var(--gdg-text-light)}.ijuk0po::placeholder{color:var(--gdg-text-light)}.invalid .ijuk0po{-webkit-text-decoration:underline;text-decoration:underline;text-decoration-color:#d60606}.saq3p5l{visibility:hidden;white-space:pre-wrap;word-wrap:break-word;width:-moz-max-content;width:max-content;max-width:100%;min-width:100%;font-size:var(--gdg-editor-font-size);line-height:16px;font-family:var(--gdg-font-family);color:var(--gdg-text-dark);padding:0 0 2px;margin:0}.gf8vzix{position:relative;margin-top:6px}.mdwzdl1{min-width:var(--mdwzdl1-0);width:100%;display:flex;align-items:flex-start;justify-content:space-between;position:relative;color:var(--gdg-text-dark)}.mdwzdl1 .gf8vzix{flex-shrink:1;min-width:0}.mdwzdl1 .spacer{flex:1}.mdwzdl1 .edit-icon{position:relative;cursor:pointer;display:flex;justify-content:center;align-items:center;color:var(--gdg-accent-color);padding:0;height:24px;width:24px;flex-shrink:0;transition:all "0.125s ease";border-radius:6px}.mdwzdl1 .edit-icon>*{width:16px;height:16px}.mdwzdl1 .edit-hover:hover{background-color:var(--gdg-accent-light);transition:background-color .15s}.mdwzdl1 .checkmark-hover:hover{color:#fff;background-color:var(--gdg-accent-color)}.mdwzdl1 .md-edit-textarea{position:relative;top:0;left:0;width:0px;height:0px;margin-top:25px;opacity:0;padding:0}.mdwzdl1 .ml-6{margin-left:6px}.n1czszh3{display:flex;margin:6px 0 3px;color:var(--gdg-text-dark)}.n1czszh3>input{font-size:var(--gdg-editor-font-size);padding:0;font-family:var(--gdg-font-family);color:var(--gdg-text-dark);background-color:var(--gdg-bg-cell)}.uf0sjo8{display:flex;flex-grow:1;align-items:center;min-height:21px}.uf0sjo8 .link-area{flex-grow:1;flex-shrink:1;cursor:pointer;margin-right:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--gdg-link-color);-webkit-text-decoration:underline!important;text-decoration:underline!important}.uf0sjo8 .edit-icon{flex-shrink:0;width:32px;color:var(--gdg-accent-color);cursor:pointer;display:flex;justify-content:center;align-items:center}.uf0sjo8 .edit-icon>*{width:24px;height:24px}.uf0sjo8 textarea{position:absolute;top:0;left:0;width:0px;height:0px;opacity:0} +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e1e8f0}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:JetBrains Mono,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#91a4b7}input::placeholder,textarea::placeholder{opacity:1;color:#91a4b7}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(101 131 255 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(101 131 255 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.pointer-events-none{pointer-events:none}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.inset-y-0{top:0;bottom:0}.right-0{right:0}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-6{margin-bottom:1.5rem}.ml-2{margin-left:.5rem}.ml-2\.5{margin-left:.625rem}.inline-block{display:inline-block}.flex{display:flex}.w-48{width:12rem}.w-full{width:100%}.max-w-full{max-width:100%}.grow{flex-grow:1}.cursor-pointer{cursor:pointer}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-col{flex-direction:column}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-3{gap:.75rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-b-md{border-bottom-right-radius:.375rem;border-bottom-left-radius:.375rem}.border{border-width:1px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(225 232 240 / var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity: 1;border-color:rgb(145 164 183 / var(--tw-border-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.pr-7{padding-right:1.75rem}.font-sans{font-family:Inter}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-none{line-height:1}.text-gray-500{--tw-text-opacity: 1;color:rgb(97 117 138 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(48 66 84 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(28 42 58 / var(--tw-text-opacity))}.opacity-0{opacity:0}.shadow-\[0_2px_10px_rgb\(0\,0\,0\,0\.15\)\]{--tw-shadow: 0 2px 10px rgb(0,0,0,.15);--tw-shadow-colored: 0 2px 10px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.tooltip{position:relative;display:flex;--distance: 4px;--arrow-size: 5px;--show-delay: .5s}.tooltip:before{position:absolute;content:attr(data-tooltip);white-space:pre;text-align:center;display:block;z-index:100;background-color:#1c273c;color:#f0f5f9;font-size:12px;font-weight:500;border-radius:4px;padding:3px 12px;visibility:hidden;transition-property:visibility;transition-duration:0s;transition-delay:0s}.tooltip:after{content:"";position:absolute;display:block;z-index:100;border-width:var(--arrow-size);border-style:solid;border-color:#1c273c;visibility:hidden;transition-property:visibility;transition-duration:0s;transition-delay:0s}.tooltip:hover:before{visibility:visible;transition-delay:var(--show-delay)}.tooltip:hover:after{visibility:visible;transition-delay:var(--show-delay)}.tooltip.right:before{top:50%;left:100%;transform:translate(calc(var(--arrow-size) - 1px + var(--distance)),-50%)}.tooltip.right:after{top:50%;left:100%;transform:translate(var(--distance),-50%);border-left:none;border-top-color:transparent;border-bottom-color:transparent}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(225 232 240 / var(--tw-bg-opacity))}.hover\:text-gray-800:hover{--tw-text-opacity: 1;color:rgb(28 42 58 / var(--tw-text-opacity))}.hover\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(13 24 41 / var(--tw-text-opacity))}.focus\:bg-gray-100:focus{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-default:disabled{cursor:default}.disabled\:text-gray-300:disabled{--tw-text-opacity: 1;color:rgb(202 213 224 / var(--tw-text-opacity))}.gdg-mnuv029{word-break:break-word;-webkit-touch-callout:default;padding-top:6px}.gdg-mnuv029>*{margin:0}.gdg-mnuv029 *:last-child{margin-bottom:0}.gdg-mnuv029 p img{width:100%}.gdg-d19meir1{position:absolute;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;overflow:hidden;box-sizing:border-box;--overlay-top:var(--d19meir1-0);left:var(--d19meir1-1);top:var(--d19meir1-0);min-width:var(--d19meir1-2);min-height:var(--d19meir1-3);width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:400px;max-height:calc(100vh - var(--d19meir1-4));font-family:var(--gdg-font-family);font-size:var(--gdg-editor-font-size);text-align:start}@-webkit-keyframes glide_fade_in-gdg-d19meir1{0%{opacity:0%}to{opacity:100%}}@keyframes glide_fade_in-gdg-d19meir1{0%{opacity:0%}to{opacity:100%}}.gdg-d19meir1.gdg-style{border-radius:2px;background-color:var(--gdg-bg-cell);box-shadow:0 0 0 1px var(--gdg-accent-color),0 0 1px #3e415666,0 6px 12px #3e415626;-webkit-animation:glide_fade_in-gdg-d19meir1 60ms 1;animation:glide_fade_in-gdg-d19meir1 60ms 1}.gdg-d19meir1.gdg-pad{padding:var(--d19meir1-5) 8.5px 3px}.gdg-d19meir1 .gdg-clip-region{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;overflow-y:auto;overflow-x:hidden;border-radius:2px;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}.gdg-d19meir1 .gdg-clip-region .gdg-growing-entry{height:100%}.gdg-d19meir1 .gdg-clip-region input.gdg-input{width:100%;border:none;border-width:0;outline:none}.gdg-d19meir1 .gdg-clip-region textarea.gdg-input{border:none;border-width:0;outline:none}.gdg-b1ygi5by{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-top:auto;margin-bottom:auto}.gdg-b1ygi5by .boe-bubble{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:var(--gdg-rounding-radius,10px);padding:0 8px;height:20px;background-color:var(--gdg-bg-bubble);color:var(--gdg-text-dark);margin:2px}.gdg-b1ygi5by textarea{position:absolute;top:0;left:0;width:0px;height:0px;opacity:0}.gdg-n15fjm3e{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin:6px 0 3px;color:var(--gdg-text-dark)}.gdg-n15fjm3e>input{font-size:var(--gdg-editor-font-size);padding:0;font-family:var(--gdg-font-family);color:var(--gdg-text-dark);background-color:var(--gdg-bg-cell)}.gdg-d4zsq0x{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.gdg-d4zsq0x .doe-bubble{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:0 8px;height:24px;background-color:var(--gdg-bg-cell);color:var(--gdg-text-dark);margin:2px;border-radius:var(--gdg-rounding-radius,6px);box-shadow:0 0 1px #3e415666,0 1px 3px #3e415666}.gdg-d4zsq0x .doe-bubble img{height:16px;object-fit:contain;margin-right:4px}.gdg-d4zsq0x textarea{position:absolute;top:0;left:0;width:0px;height:0px;opacity:0}.gdg-i2iowwq{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:100%}.gdg-i2iowwq .gdg-centering-container{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:100%}.gdg-i2iowwq .gdg-centering-container img,.gdg-i2iowwq .gdg-centering-container canvas{max-height:calc(100vh - var(--overlay-top) - 20px);object-fit:contain;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.gdg-i2iowwq .gdg-centering-container canvas{max-width:380px}.gdg-i2iowwq .gdg-edit-icon{position:absolute;top:12px;right:0;width:48px;height:48px;color:var(--gdg-accent-color);cursor:pointer;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.gdg-i2iowwq .gdg-edit-icon>*{width:24px;height:24px}.gdg-i2iowwq textarea{position:absolute;top:0;left:0;width:0px;height:0px;opacity:0}.gdg-u1rrojo{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;min-height:21px}.gdg-u1rrojo .gdg-link-area{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;-webkit-flex-shrink:1;-ms-flex-negative:1;flex-shrink:1;cursor:pointer;margin-right:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--gdg-link-color);-webkit-text-decoration:underline!important;text-decoration:underline!important}.gdg-u1rrojo .gdg-edit-icon{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;width:32px;color:var(--gdg-accent-color);cursor:pointer;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.gdg-u1rrojo .gdg-edit-icon>*{width:24px;height:24px}.gdg-u1rrojo textarea{position:absolute;top:0;left:0;width:0px;height:0px;opacity:0}.gdg-m1pnx84e{min-width:var(--m1pnx84e-0);width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;position:relative;color:var(--gdg-text-dark)}.gdg-m1pnx84e .gdg-g1y0xocz{-webkit-flex-shrink:1;-ms-flex-negative:1;flex-shrink:1;min-width:0}.gdg-m1pnx84e .gdg-spacer{-webkit-flex:1;-ms-flex:1;flex:1}.gdg-m1pnx84e .gdg-edit-icon{position:relative;cursor:pointer;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:var(--gdg-accent-color);padding:0;height:24px;width:24px;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-transition:all "0.125s ease";transition:all "0.125s ease";border-radius:6px}.gdg-m1pnx84e .gdg-edit-icon>*{width:16px;height:16px}.gdg-m1pnx84e .gdg-edit-hover:hover{background-color:var(--gdg-accent-light);-webkit-transition:background-color .15s;transition:background-color .15s}.gdg-m1pnx84e .gdg-checkmark-hover:hover{color:#fff;background-color:var(--gdg-accent-color)}.gdg-m1pnx84e .gdg-md-edit-textarea{position:relative;top:0;left:0;width:0px;height:0px;margin-top:25px;opacity:0;padding:0}.gdg-m1pnx84e .gdg-ml-6{margin-left:6px}.gdg-s1dgczr6 .dvn-scroller{overflow:var(--s1dgczr6-0);-webkit-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);transform:translateZ(0)}.gdg-s1dgczr6 .dvn-hidden{visibility:hidden}.gdg-s1dgczr6 .dvn-scroll-inner{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;pointer-events:none}.gdg-s1dgczr6 .dvn-scroll-inner>*{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}.gdg-s1dgczr6 .dvn-scroll-inner .dvn-spacer{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}.gdg-s1dgczr6 .dvn-scroll-inner .dvn-stack{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.gdg-s1dgczr6 .dvn-underlay>*{position:absolute;left:0;top:0}.gdg-s1dgczr6 canvas{outline:none}.gdg-s1dgczr6 canvas *{height:0}.gdg-izpuzkl{position:absolute;inset:0;width:100%;height:100%;border-radius:0;resize:none;white-space:pre-wrap;min-width:100%;overflow:hidden;border:0;background-color:transparent;font-size:var(--gdg-editor-font-size);line-height:16px;font-family:var(--gdg-font-family);-webkit-text-fill-color:var(--gdg-text-dark);color:var(--gdg-text-dark);padding:0;margin:0}.gdg-izpuzkl::-webkit-input-placeholder{color:var(--gdg-text-light)}.gdg-izpuzkl::-moz-placeholder{color:var(--gdg-text-light)}.gdg-izpuzkl:-ms-input-placeholder{color:var(--gdg-text-light)}.gdg-izpuzkl::placeholder{color:var(--gdg-text-light)}.gdg-invalid .gdg-izpuzkl{-webkit-text-decoration:underline;text-decoration:underline;-webkit-text-decoration-color:#d60606;text-decoration-color:#d60606}.gdg-s69h75o{visibility:hidden;white-space:pre-wrap;word-wrap:break-word;width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:100%;min-width:100%;font-size:var(--gdg-editor-font-size);line-height:16px;font-family:var(--gdg-font-family);color:var(--gdg-text-dark);padding:0 0 2px;margin:0}.gdg-g1y0xocz{position:relative;margin-top:6px}.gdg-seveqep{position:absolute;top:4px;right:20px;background-color:var(--gdg-bg-cell);color:var(--gdg-text-dark);padding:8px;border:1px solid var(--gdg-border-color);border-radius:6px;font-size:var(--gdg-editor-font-size);-webkit-animation:gdg-search-fadein-gdg-seveqep .15s forwards;animation:gdg-search-fadein-gdg-seveqep .15s forwards}.gdg-seveqep.out{-webkit-animation:gdg-search-fadeout-gdg-seveqep .15s forwards;animation:gdg-search-fadeout-gdg-seveqep .15s forwards}.gdg-seveqep .gdg-search-bar-inner{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.gdg-seveqep .gdg-search-status{padding-top:4px;font-size:11px}.gdg-seveqep .gdg-search-progress{position:absolute;height:4px;left:0;bottom:0;background-color:var(--gdg-text-light)}.gdg-seveqep input{width:220px;color:var(--gdg-textDark);background-color:var(--gdg-bg-cell);border:none;border-width:0;outline:none}.gdg-seveqep button{width:24px;height:24px;padding:0;border:none;outline:none;background:none;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;color:var(--gdg-text-medium)}.gdg-seveqep button:hover{color:var(--gdg-text-dark)}.gdg-seveqep button .button-icon{width:16px;height:16px}.gdg-seveqep button:disabled{opacity:.4;pointer-events:none}@-webkit-keyframes gdg-search-fadeout-gdg-seveqep{0%{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translate(0)}to{-webkit-transform:translateX(400px);-ms-transform:translateX(400px);transform:translate(400px)}}@keyframes gdg-search-fadeout-gdg-seveqep{0%{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translate(0)}to{-webkit-transform:translateX(400px);-ms-transform:translateX(400px);transform:translate(400px)}}@-webkit-keyframes gdg-search-fadein-gdg-seveqep{0%{-webkit-transform:translateX(400px);-ms-transform:translateX(400px);transform:translate(400px)}to{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translate(0)}}@keyframes gdg-search-fadein-gdg-seveqep{0%{-webkit-transform:translateX(400px);-ms-transform:translateX(400px);transform:translate(400px)}to{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translate(0)}}.gdg-wmyidgi{position:relative;min-width:10px;min-height:10px;max-width:100%;max-height:100%;width:var(--wmyidgi-0);height:var(--wmyidgi-1);overflow:hidden;overflow:clip;direction:ltr}.gdg-wmyidgi>:first-child{position:absolute;left:0;top:0;width:100%;height:100%}.gdg-r17m35ur{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;border:none;outline:none;background-color:var(--gdg-bg-header-has-focus);border-radius:9px;padding:0 8px;box-shadow:0 0 0 1px var(--gdg-border-color);color:var(--gdg-text-group-header);min-height:var(--r17m35ur-0);font:var(--gdg-header-font-style) var(--gdg-font-family)}.gdg-c1tqibwd{padding:0 8px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:var(--gdg-bg-header)} diff --git a/lib/assets/data_table/build/main.js b/lib/assets/data_table/build/main.js index 1f3a1a14..51e1db3d 100644 --- a/lib/assets/data_table/build/main.js +++ b/lib/assets/data_table/build/main.js @@ -1,71 +1,65 @@ -import{a as S,b as j,c as v0,d as R,e as y1,f as K1,g as W0}from"./chunk-RVIU7NCN.js";var Us=R(T2=>{"use strict";function $t(e,t){var l=e.length;e.push(t);e:for(;0>>1,i=e[r];if(0>>1;rJe(a,l))nJe(c,a)?(e[r]=c,e[n]=l,r=n):(e[r]=a,e[o]=l,r=o);else if(nJe(c,l))e[r]=c,e[n]=l,r=n;else break e}}return t}function Je(e,t){var l=e.sortIndex-t.sortIndex;return l!==0?l:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(_s=performance,T2.unstable_now=function(){return _s.now()}):(Ot=Date,Ps=Ot.now(),T2.unstable_now=function(){return Ot.now()-Ps});var _s,Ot,Ps,s5=[],A5=[],XH=1,y4=null,$0=3,l8=!1,z9=!1,H3=!1,Is=typeof setTimeout=="function"?setTimeout:null,Os=typeof clearTimeout=="function"?clearTimeout:null,Ts=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Ut(e){for(var t=I4(A5);t!==null;){if(t.callback===null)t8(A5);else if(t.startTime<=e)t8(A5),t.sortIndex=t.expirationTime,$t(s5,t);else break;t=I4(A5)}}function qt(e){if(H3=!1,Ut(e),!z9)if(I4(s5)!==null)z9=!0,Gt(jt);else{var t=I4(A5);t!==null&&Kt(qt,t.startTime-e)}}function jt(e,t){z9=!1,H3&&(H3=!1,Os(L3),L3=-1),l8=!0;var l=$0;try{for(Ut(t),y4=I4(s5);y4!==null&&(!(y4.expirationTime>t)||e&&!$s());){var r=y4.callback;if(typeof r=="function"){y4.callback=null,$0=y4.priorityLevel;var i=r(y4.expirationTime<=t);t=T2.unstable_now(),typeof i=="function"?y4.callback=i:y4===I4(s5)&&t8(s5),Ut(t)}else t8(s5);y4=I4(s5)}if(y4!==null)var s=!0;else{var o=I4(A5);o!==null&&Kt(qt,o.startTime-t),s=!1}return s}finally{y4=null,$0=l,l8=!1}}var r8=!1,e8=null,L3=-1,As=5,Ws=-1;function $s(){return!(T2.unstable_now()-Wse||125r?(e.sortIndex=l,$t(A5,e),I4(s5)===null&&e===I4(A5)&&(H3?(Os(L3),L3=-1):H3=!0,Kt(qt,l-r))):(e.sortIndex=i,$t(s5,e),z9||l8||(z9=!0,Gt(jt))),e};T2.unstable_shouldYield=$s;T2.unstable_wrapCallback=function(e){var t=$0;return function(){var l=$0;$0=t;try{return e.apply(this,arguments)}finally{$0=l}}}});var js=R((sk,qs)=>{"use strict";qs.exports=Us()});var tc=R(f4=>{"use strict";var ta=K1(),v4=js();function Y(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,l=1;lt}return!1}function J0(e,t,l,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=l,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var T0={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){T0[e]=new J0(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];T0[t]=new J0(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){T0[e]=new J0(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){T0[e]=new J0(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){T0[e]=new J0(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){T0[e]=new J0(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){T0[e]=new J0(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){T0[e]=new J0(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){T0[e]=new J0(e,5,!1,e.toLowerCase(),null,!1,!1)});var Cr=/[\-:]([a-z])/g;function mr(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Cr,mr);T0[t]=new J0(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Cr,mr);T0[t]=new J0(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Cr,mr);T0[t]=new J0(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){T0[e]=new J0(e,1,!1,e.toLowerCase(),null,!1,!1)});T0.xlinkHref=new J0("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){T0[e]=new J0(e,1,!1,e.toLowerCase(),null,!0,!0)});function hr(e,t,l,r){var i=T0.hasOwnProperty(t)?T0[t]:null;(i!==null?i.type!==0:r||!(2a||i[o]!==s[a]){var n=` -`+i[o].replace(" at new "," at ");return e.displayName&&n.includes("")&&(n=n.replace("",e.displayName)),n}while(1<=o&&0<=a);break}}}finally{Yt=!1,Error.prepareStackTrace=l}return(e=e?e.displayName||e.name:"")?N3(e):""}function tL(e){switch(e.tag){case 5:return N3(e.type);case 16:return N3("Lazy");case 13:return N3("Suspense");case 19:return N3("SuspenseList");case 0:case 2:case 15:return e=Qt(e.type,!1),e;case 11:return e=Qt(e.type.render,!1),e;case 1:return e=Qt(e.type,!0),e;default:return""}}function fl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C7:return"Fragment";case c7:return"Portal";case Vl:return"Profiler";case wr:return"StrictMode";case vl:return"Suspense";case pl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ia:return(e.displayName||"Context")+".Consumer";case ra:return(e._context.displayName||"Context")+".Provider";case gr:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ur:return t=e.displayName||null,t!==null?t:fl(e.type)||"Memo";case $5:t=e._payload,e=e._init;try{return fl(e(t))}catch(l){}}return null}function lL(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return fl(t);case 8:return t===wr?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function i9(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function oa(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function rL(e){var t=oa(e)?"checked":"value",l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof l!="undefined"&&typeof l.get=="function"&&typeof l.set=="function"){var i=l.get,s=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function s8(e){e._valueTracker||(e._valueTracker=rL(e))}function aa(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),r="";return e&&(r=oa(e)?e.checked?"true":"false":e.value),e=r,e!==l?(t.setValue(e),!0):!1}function F8(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function xl(e,t){var l=t.checked;return l0({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l!=null?l:e._wrapperState.initialChecked})}function Ys(e,t){var l=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;l=i9(t.value!=null?t.value:l),e._wrapperState={initialChecked:r,initialValue:l,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function na(e,t){t=t.checked,t!=null&&hr(e,"checked",t,!1)}function Ml(e,t){na(e,t);var l=i9(t.value),r=t.type;if(l!=null)r==="number"?(l===0&&e.value===""||e.value!=l)&&(e.value=""+l):e.value!==""+l&&(e.value=""+l);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Zl(e,t.type,l):t.hasOwnProperty("defaultValue")&&Zl(e,t.type,i9(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Qs(e,t,l){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,l||t===e.value||(e.value=t),e.defaultValue=t}l=e.name,l!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,l!==""&&(e.name=l)}function Zl(e,t,l){(t!=="number"||F8(e.ownerDocument)!==e)&&(l==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+l&&(e.defaultValue=""+l))}var R3=Array.isArray;function p7(e,t,l,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=o8.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function O3(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var B3={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},iL=["Webkit","ms","Moz","O"];Object.keys(B3).forEach(function(e){iL.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),B3[t]=B3[e]})});function ha(e,t,l){return t==null||typeof t=="boolean"||t===""?"":l||typeof t!="number"||t===0||B3.hasOwnProperty(e)&&B3[e]?(""+t).trim():t+"px"}function wa(e,t){e=e.style;for(var l in t)if(t.hasOwnProperty(l)){var r=l.indexOf("--")===0,i=ha(l,t[l],r);l==="float"&&(l="cssFloat"),r?e.setProperty(l,i):e[l]=i}}var sL=l0({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Rl(e,t){if(t){if(sL[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Y(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Y(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Y(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Y(62))}}function zl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var yl=null;function dr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Bl=null,f7=null,x7=null;function to(e){if(e=se(e)){if(typeof Bl!="function")throw Error(Y(280));var t=e.stateNode;t&&(t=a6(t),Bl(e.stateNode,e.type,t))}}function ga(e){f7?x7?x7.push(e):x7=[e]:f7=e}function ua(){if(f7){var e=f7,t=x7;if(x7=f7=null,to(e),t)for(e=0;e>>=0,e===0?32:31-(dL(e)/HL|0)|0}var a8=64,n8=4194304;function z3(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function P8(e,t){var l=e.pendingLanes;if(l===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=l&268435455;if(o!==0){var a=o&~i;a!==0?r=z3(a):(s&=o,s!==0&&(r=z3(s)))}else o=l&~i,o!==0?r=z3(o):s!==0&&(r=z3(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=l&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0l;l++)t.push(e);return t}function re(e,t,l){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-U4(t),e[t]=l}function pL(e,t){var l=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=F3),Co=" ",mo=!1;function ba(e,t){switch(e){case"keyup":return KL.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _a(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var m7=!1;function YL(e,t){switch(e){case"compositionend":return _a(t);case"keypress":return t.which!==32?null:(mo=!0,Co);case"textInput":return e=t.data,e===Co&&mo?null:e;default:return null}}function QL(e,t){if(m7)return e==="compositionend"||!Mr&&ba(e,t)?(e=Fa(),M8=pr=G5=null,m7=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:l,offset:t-e};e=r}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=go(l)}}function Ia(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ia(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Oa(){for(var e=window,t=F8();t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch(r){l=!1}if(l)e=t.contentWindow;else break;t=F8(e.document)}return t}function Zr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function aV(e){var t=Oa(),l=e.focusedElem,r=e.selectionRange;if(t!==l&&l&&l.ownerDocument&&Ia(l.ownerDocument.documentElement,l)){if(r!==null&&Zr(l)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in l)l.selectionStart=t,l.selectionEnd=Math.min(e,l.value.length);else if(e=(t=l.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=l.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=uo(l,s);var o=uo(l,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=l;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l=document.documentMode,h7=null,Pl=null,b3=null,Tl=!1;function Ho(e,t,l){var r=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Tl||h7==null||h7!==F8(r)||(r=h7,"selectionStart"in r&&Zr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),b3&&j3(b3,r)||(b3=r,r=I8(Pl,"onSelect"),0u7||(e.current=$l[u7],$l[u7]=null,u7--)}function D2(e,t){u7++,$l[u7]=e.current,e.current=t}var s9={},G0=a9(s9),s4=a9(!1),P9=s9;function R7(e,t){var l=e.type.contextTypes;if(!l)return s9;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in l)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function o4(e){return e=e.childContextTypes,e!=null}function A8(){U2(s4),U2(G0)}function Eo(e,t,l){if(G0.current!==s9)throw Error(Y(168));D2(G0,t),D2(s4,l)}function Xa(e,t,l){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return l;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Y(108,lL(e)||"Unknown",i));return l0({},l,r)}function W8(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||s9,P9=G0.current,D2(G0,e),D2(s4,s4.current),!0}function No(e,t,l){var r=e.stateNode;if(!r)throw Error(Y(169));l?(e=Xa(e,t,P9),r.__reactInternalMemoizedMergedChildContext=e,U2(s4),U2(G0),D2(G0,e)):U2(s4),D2(s4,l)}var x5=null,n6=!1,cl=!1;function Ya(e){x5===null?x5=[e]:x5.push(e)}function HV(e){n6=!0,Ya(e)}function n9(){if(!cl&&x5!==null){cl=!0;var e=0,t=y2;try{var l=x5;for(y2=1;e>=o,i-=o,M5=1<<32-U4(t)+i|l<x?(Z=p,p=null):Z=p.sibling;var N=h(w,p,L[x],v);if(N===null){p===null&&(p=Z);break}e&&p&&N.alternate===null&&t(w,p),g=s(N,g,x),E===null?M=N:E.sibling=N,E=N,p=Z}if(x===L.length)return l(w,p),K2&&y9(w,x),M;if(p===null){for(;xx?(Z=p,p=null):Z=p.sibling;var F=h(w,p,N.value,v);if(F===null){p===null&&(p=Z);break}e&&p&&F.alternate===null&&t(w,p),g=s(F,g,x),E===null?M=F:E.sibling=F,E=F,p=Z}if(N.done)return l(w,p),K2&&y9(w,x),M;if(p===null){for(;!N.done;x++,N=L.next())N=m(w,N.value,v),N!==null&&(g=s(N,g,x),E===null?M=N:E.sibling=N,E=N);return K2&&y9(w,x),M}for(p=r(w,p);!N.done;x++,N=L.next())N=u(p,w,x,N.value,v),N!==null&&(e&&N.alternate!==null&&p.delete(N.key===null?x:N.key),g=s(N,g,x),E===null?M=N:E.sibling=N,E=N);return e&&p.forEach(function(b){return t(w,b)}),K2&&y9(w,x),M}function f(w,g,L,v){if(typeof L=="object"&&L!==null&&L.type===C7&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case i8:e:{for(var M=L.key,E=g;E!==null;){if(E.key===M){if(M=L.type,M===C7){if(E.tag===7){l(w,E.sibling),g=i(E,L.props.children),g.return=w,w=g;break e}}else if(E.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===$5&&ko(M)===E.type){l(w,E.sibling),g=i(E,L.props),g.ref=x3(w,E,L),g.return=w,w=g;break e}l(w,E);break}else t(w,E);E=E.sibling}L.type===C7?(g=_9(L.props.children,w.mode,v,L.key),g.return=w,w=g):(v=S8(L.type,L.key,L.props,null,w.mode,v),v.ref=x3(w,g,L),v.return=w,w=v)}return o(w);case c7:e:{for(E=L.key;g!==null;){if(g.key===E)if(g.tag===4&&g.stateNode.containerInfo===L.containerInfo&&g.stateNode.implementation===L.implementation){l(w,g.sibling),g=i(g,L.children||[]),g.return=w,w=g;break e}else{l(w,g);break}else t(w,g);g=g.sibling}g=Hl(L,w.mode,v),g.return=w,w=g}return o(w);case $5:return E=L._init,f(w,g,E(L._payload),v)}if(R3(L))return d(w,g,L,v);if(V3(L))return H(w,g,L,v);V8(w,L)}return typeof L=="string"&&L!==""||typeof L=="number"?(L=""+L,g!==null&&g.tag===6?(l(w,g.sibling),g=i(g,L),g.return=w,w=g):(l(w,g),g=dl(L,w.mode,v),g.return=w,w=g),o(w)):l(w,g)}return f}var y7=on(!0),an=on(!1),oe={},C5=a9(oe),Y3=a9(oe),Q3=a9(oe);function k9(e){if(e===oe)throw Error(Y(174));return e}function kr(e,t){switch(D2(Q3,t),D2(Y3,e),D2(C5,oe),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Nl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Nl(t,e)}U2(C5),D2(C5,t)}function B7(){U2(C5),U2(Y3),U2(Q3)}function nn(e){k9(Q3.current);var t=k9(C5.current),l=Nl(t,e.type);t!==l&&(D2(Y3,e),D2(C5,l))}function br(e){Y3.current===e&&(U2(C5),U2(Y3))}var e0=a9(0);function K8(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Cl=[];function _r(){for(var e=0;el?l:4,e(!0);var r=ml.transition;ml.transition={};try{e(!1),t()}finally{y2=l,ml.transition=r}}function Mn(){return _4().memoizedState}function pV(e,t,l){var r=l9(e);if(l={lane:r,action:l,hasEagerState:!1,eagerState:null,next:null},Zn(e))En(t,l);else if(l=tn(e,t,l,r),l!==null){var i=Q0();q4(l,e,r,i),Nn(l,t,r)}}function fV(e,t,l){var r=l9(e),i={lane:r,action:l,hasEagerState:!1,eagerState:null,next:null};if(Zn(e))En(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,l);if(i.hasEagerState=!0,i.eagerState=a,j4(a,o)){var n=t.interleaved;n===null?(i.next=i,Sr(t)):(i.next=n.next,n.next=i),t.interleaved=i;return}}catch(c){}finally{}l=tn(e,t,i,r),l!==null&&(i=Q0(),q4(l,e,r,i),Nn(l,t,r))}}function Zn(e){var t=e.alternate;return e===t0||t!==null&&t===t0}function En(e,t){_3=X8=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Nn(e,t,l){if(l&4194240){var r=t.lanes;r&=e.pendingLanes,l|=r,t.lanes=l,Lr(e,l)}}var Y8={readContext:b4,useCallback:U0,useContext:U0,useEffect:U0,useImperativeHandle:U0,useInsertionEffect:U0,useLayoutEffect:U0,useMemo:U0,useReducer:U0,useRef:U0,useState:U0,useDebugValue:U0,useDeferredValue:U0,useTransition:U0,useMutableSource:U0,useSyncExternalStore:U0,useId:U0,unstable_isNewReconciler:!1},xV={readContext:b4,useCallback:function(e,t){return a5().memoizedState=[e,t===void 0?null:t],e},useContext:b4,useEffect:_o,useImperativeHandle:function(e,t,l){return l=l!=null?l.concat([e]):null,R8(4194308,4,Vn.bind(null,t,e),l)},useLayoutEffect:function(e,t){return R8(4194308,4,e,t)},useInsertionEffect:function(e,t){return R8(4,2,e,t)},useMemo:function(e,t){var l=a5();return t=t===void 0?null:t,e=e(),l.memoizedState=[e,t],e},useReducer:function(e,t,l){var r=a5();return t=l!==void 0?l(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=pV.bind(null,t0,e),[r.memoizedState,e]},useRef:function(e){var t=a5();return e={current:e},t.memoizedState=e},useState:bo,useDebugValue:Or,useDeferredValue:function(e){return a5().memoizedState=e},useTransition:function(){var e=bo(!1),t=e[0];return e=vV.bind(null,e[1]),a5().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,l){var r=t0,i=a5();if(K2){if(l===void 0)throw Error(Y(407));l=l()}else{if(l=t(),N0===null)throw Error(Y(349));D9&30||mn(r,t,l)}i.memoizedState=l;var s={value:l,getSnapshot:t};return i.queue=s,_o(wn.bind(null,r,s,e),[e]),r.flags|=2048,te(9,hn.bind(null,r,s,l,t),void 0,null),l},useId:function(){var e=a5(),t=N0.identifierPrefix;if(K2){var l=Z5,r=M5;l=(r&~(1<<32-U4(r)-1)).toString(32)+l,t=":"+t+"R"+l,l=J3++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(l,{is:r.is}):(e=o.createElement(l),l==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,l),e[n5]=t,e[X3]=r,_n(e,t,!1,!1),t.stateNode=e;e:{switch(o=zl(l,r),l){case"dialog":$2("cancel",e),$2("close",e),i=r;break;case"iframe":case"object":case"embed":$2("load",e),i=r;break;case"video":case"audio":for(i=0;iF7&&(t.flags|=128,r=!0,M3(s,!1),t.lanes=4194304)}else{if(!r)if(e=K8(o),e!==null){if(t.flags|=128,r=!0,l=e.updateQueue,l!==null&&(t.updateQueue=l,t.flags|=4),M3(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!K2)return q0(t),null}else 2*n0()-s.renderingStartTime>F7&&l!==1073741824&&(t.flags|=128,r=!0,M3(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(l=s.last,l!==null?l.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=n0(),t.sibling=null,l=e0.current,D2(e0,r?l&1|2:l&1),t):(q0(t),null);case 22:case 23:return jr(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?H4&1073741824&&(q0(t),t.subtreeFlags&6&&(t.flags|=8192)):q0(t),null;case 24:return null;case 25:return null}throw Error(Y(156,t.tag))}function BV(e,t){switch(Nr(t),t.tag){case 1:return o4(t.type)&&A8(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return B7(),U2(s4),U2(G0),_r(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return br(t),null;case 13:if(U2(e0),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Y(340));z7()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U2(e0),null;case 4:return B7(),null;case 10:return Br(t.type._context),null;case 22:case 23:return jr(),null;case 24:return null;default:return null}}var p8=!1,j0=!1,SV=typeof WeakSet=="function"?WeakSet:Set,V1=null;function V7(e,t){var l=e.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(r){a0(e,t,r)}else l.current=null}function lr(e,t,l){try{l()}catch(r){a0(e,t,r)}}var Uo=!1;function FV(e,t){if(Dl=T8,e=Oa(),Zr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var r=l.getSelection&&l.getSelection();if(r&&r.rangeCount!==0){l=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{l.nodeType,s.nodeType}catch(v){l=null;break e}var o=0,a=-1,n=-1,c=0,C=0,m=e,h=null;t:for(;;){for(var u;m!==l||i!==0&&m.nodeType!==3||(a=o+i),m!==s||r!==0&&m.nodeType!==3||(n=o+r),m.nodeType===3&&(o+=m.nodeValue.length),(u=m.firstChild)!==null;)h=m,m=u;for(;;){if(m===e)break t;if(h===l&&++c===i&&(a=o),h===s&&++C===r&&(n=o),(u=m.nextSibling)!==null)break;m=h,h=m.parentNode}m=u}l=a===-1||n===-1?null:{start:a,end:n}}else l=null}l=l||{start:0,end:0}}else l=null;for(Il={focusedElem:e,selectionRange:l},T8=!1,V1=t;V1!==null;)if(t=V1,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,V1=e;else for(;V1!==null;){t=V1;try{var d=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(d!==null){var H=d.memoizedProps,f=d.memoizedState,w=t.stateNode,g=w.getSnapshotBeforeUpdate(t.elementType===t.type?H:A4(t.type,H),f);w.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var L=t.stateNode.containerInfo;L.nodeType===1?L.textContent="":L.nodeType===9&&L.documentElement&&L.removeChild(L.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Y(163))}}catch(v){a0(t,t.return,v)}if(e=t.sibling,e!==null){e.return=t.return,V1=e;break}V1=t.return}return d=Uo,Uo=!1,d}function P3(e,t,l){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&lr(t,l,s)}i=i.next}while(i!==r)}}function m6(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var l=t=t.next;do{if((l.tag&e)===e){var r=l.create;l.destroy=r()}l=l.next}while(l!==t)}}function rr(e){var t=e.ref;if(t!==null){var l=e.stateNode;switch(e.tag){case 5:e=l;break;default:e=l}typeof t=="function"?t(e):t.current=e}}function Dn(e){var t=e.alternate;t!==null&&(e.alternate=null,Dn(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[n5],delete t[X3],delete t[Wl],delete t[uV],delete t[dV])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function In(e){return e.tag===5||e.tag===3||e.tag===4}function qo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||In(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ir(e,t,l){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?l.nodeType===8?l.parentNode.insertBefore(e,t):l.insertBefore(e,t):(l.nodeType===8?(t=l.parentNode,t.insertBefore(e,l)):(t=l,t.appendChild(e)),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=O8));else if(r!==4&&(e=e.child,e!==null))for(ir(e,t,l),e=e.sibling;e!==null;)ir(e,t,l),e=e.sibling}function sr(e,t,l){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(sr(e,t,l),e=e.sibling;e!==null;)sr(e,t,l),e=e.sibling}var _0=null,W4=!1;function W5(e,t,l){for(l=l.child;l!==null;)On(e,t,l),l=l.sibling}function On(e,t,l){if(c5&&typeof c5.onCommitFiberUnmount=="function")try{c5.onCommitFiberUnmount(r6,l)}catch(a){}switch(l.tag){case 5:j0||V7(l,t);case 6:var r=_0,i=W4;_0=null,W5(e,t,l),_0=r,W4=i,_0!==null&&(W4?(e=_0,l=l.stateNode,e.nodeType===8?e.parentNode.removeChild(l):e.removeChild(l)):_0.removeChild(l.stateNode));break;case 18:_0!==null&&(W4?(e=_0,l=l.stateNode,e.nodeType===8?nl(e.parentNode,l):e.nodeType===1&&nl(e,l),U3(e)):nl(_0,l.stateNode));break;case 4:r=_0,i=W4,_0=l.stateNode.containerInfo,W4=!0,W5(e,t,l),_0=r,W4=i;break;case 0:case 11:case 14:case 15:if(!j0&&(r=l.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&lr(l,t,o),i=i.next}while(i!==r)}W5(e,t,l);break;case 1:if(!j0&&(V7(l,t),r=l.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=l.memoizedProps,r.state=l.memoizedState,r.componentWillUnmount()}catch(a){a0(l,t,a)}W5(e,t,l);break;case 21:W5(e,t,l);break;case 22:l.mode&1?(j0=(r=j0)||l.memoizedState!==null,W5(e,t,l),j0=r):W5(e,t,l);break;default:W5(e,t,l)}}function jo(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var l=e.stateNode;l===null&&(l=e.stateNode=new SV),t.forEach(function(r){var i=AV.bind(null,e,r);l.has(r)||(l.add(r),r.then(i,i))})}}function O4(e,t){var l=t.deletions;if(l!==null)for(var r=0;ri&&(i=o),r&=~s}if(r=i,r=n0()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*bV(r/1960))-r,10e?16:e,K5===null)var r=!1;else{if(e=K5,K5=null,e6=0,x2&6)throw Error(Y(331));var i=x2;for(x2|=4,V1=e.current;V1!==null;){var s=V1,o=s.child;if(V1.flags&16){var a=s.deletions;if(a!==null){for(var n=0;nn0()-Ur?b9(e,0):$r|=l),a4(e,t)}function Kn(e,t){t===0&&(e.mode&1?(t=n8,n8<<=1,!(n8&130023424)&&(n8=4194304)):t=1);var l=Q0();e=z5(e,t),e!==null&&(re(e,t,l),a4(e,l))}function OV(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Kn(e,l)}function AV(e,t){var l=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Y(314))}r!==null&&r.delete(t),Kn(e,l)}var Xn;Xn=function(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps||s4.current)i4=!0;else{if(!(e.lanes&l)&&!(t.flags&128))return i4=!1,zV(e,t,l);i4=!!(e.flags&131072)}else i4=!1,K2&&t.flags&1048576&&Qa(t,U8,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;z8(e,t),e=t.pendingProps;var i=R7(t,G0.current);Z7(t,l),i=Tr(null,t,r,e,i,l);var s=Dr();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,o4(r)?(s=!0,W8(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Fr(t),i.updater=c6,t.stateNode=i,i._reactInternals=t,Kl(t,r,e,l),t=Ql(null,t,r,!0,s,l)):(t.tag=0,K2&&s&&Er(t),Y0(null,t,i,l),t=t.child),t;case 16:r=t.elementType;e:{switch(z8(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=$V(r),e=A4(r,e),i){case 0:t=Yl(null,t,r,e,l);break e;case 1:t=Ao(null,t,r,e,l);break e;case 11:t=Io(null,t,r,e,l);break e;case 14:t=Oo(null,t,r,A4(r.type,e),l);break e}throw Error(Y(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:A4(r,i),Yl(e,t,r,i,l);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:A4(r,i),Ao(e,t,r,i,l);case 3:e:{if(Fn(t),e===null)throw Error(Y(387));r=t.pendingProps,s=t.memoizedState,i=s.element,ln(e,t),G8(t,r,null,l);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=S7(Error(Y(423)),t),t=Wo(e,t,r,l,i);break e}else if(r!==i){i=S7(Error(Y(424)),t),t=Wo(e,t,r,l,i);break e}else for(L4=J5(t.stateNode.containerInfo.firstChild),V4=t,K2=!0,$4=null,l=an(t,null,r,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(z7(),r===i){t=y5(e,t,l);break e}Y0(e,t,r,l)}t=t.child}return t;case 5:return nn(t),e===null&&ql(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,Ol(r,i)?o=null:s!==null&&Ol(r,s)&&(t.flags|=32),Sn(e,t),Y0(e,t,o,l),t.child;case 6:return e===null&&ql(t),null;case 13:return kn(e,t,l);case 4:return kr(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=y7(t,null,r,l):Y0(e,t,r,l),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:A4(r,i),Io(e,t,r,i,l);case 7:return Y0(e,t,t.pendingProps,l),t.child;case 8:return Y0(e,t,t.pendingProps.children,l),t.child;case 12:return Y0(e,t,t.pendingProps.children,l),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,D2(q8,r._currentValue),r._currentValue=o,s!==null)if(j4(s.value,o)){if(s.children===i.children&&!s4.current){t=y5(e,t,l);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var n=a.firstContext;n!==null;){if(n.context===r){if(s.tag===1){n=E5(-1,l&-l),n.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var C=c.pending;C===null?n.next=n:(n.next=C.next,C.next=n),c.pending=n}}s.lanes|=l,n=s.alternate,n!==null&&(n.lanes|=l),jl(s.return,l,t),a.lanes|=l;break}n=n.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(Y(341));o.lanes|=l,a=o.alternate,a!==null&&(a.lanes|=l),jl(o,l,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Y0(e,t,i.children,l),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Z7(t,l),i=b4(i),r=r(i),t.flags|=1,Y0(e,t,r,l),t.child;case 14:return r=t.type,i=A4(r,t.pendingProps),i=A4(r.type,i),Oo(e,t,r,i,l);case 15:return yn(e,t,t.type,t.pendingProps,l);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:A4(r,i),z8(e,t),t.tag=1,o4(r)?(e=!0,W8(t)):e=!1,Z7(t,l),sn(t,r,i),Kl(t,r,i,l),Ql(null,t,r,!0,e,l);case 19:return bn(e,t,l);case 22:return Bn(e,t,l)}throw Error(Y(156,t.tag))};function Yn(e,t){return fa(e,t)}function WV(e,t,l,r){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function F4(e,t,l,r){return new WV(e,t,l,r)}function Kr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $V(e){if(typeof e=="function")return Kr(e)?1:0;if(e!=null){if(e=e.$$typeof,e===gr)return 11;if(e===ur)return 14}return 2}function r9(e,t){var l=e.alternate;return l===null?(l=F4(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&14680064,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l}function S8(e,t,l,r,i,s){var o=2;if(r=e,typeof e=="function")Kr(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case C7:return _9(l.children,i,s,t);case wr:o=8,i|=8;break;case Vl:return e=F4(12,l,t,i|2),e.elementType=Vl,e.lanes=s,e;case vl:return e=F4(13,l,t,i),e.elementType=vl,e.lanes=s,e;case pl:return e=F4(19,l,t,i),e.elementType=pl,e.lanes=s,e;case sa:return w6(l,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ra:o=10;break e;case ia:o=9;break e;case gr:o=11;break e;case ur:o=14;break e;case $5:o=16,r=null;break e}throw Error(Y(130,e==null?e:typeof e,""))}return t=F4(o,l,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function _9(e,t,l,r){return e=F4(7,e,r,t),e.lanes=l,e}function w6(e,t,l,r){return e=F4(22,e,r,t),e.elementType=sa,e.lanes=l,e.stateNode={isHidden:!1},e}function dl(e,t,l){return e=F4(6,e,null,t),e.lanes=l,e}function Hl(e,t,l){return t=F4(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function UV(e,t,l,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=el(0),this.expirationTimes=el(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=el(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Xr(e,t,l,r,i,s,o,a,n){return e=new UV(e,t,l,a,n),t===1?(t=1,s===!0&&(t|=8)):t=0,s=F4(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},Fr(s),e}function qV(e,t,l){var r=3{"use strict";function lc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(lc)}catch(e){console.error(e)}}lc(),rc.exports=tc()});var sc=R(ei=>{"use strict";var ic=L6();ei.createRoot=ic.createRoot,ei.hydrateRoot=ic.hydrateRoot;var nk});var ac=R((Ck,oc)=>{function YV(e,t,l){return e===e&&(l!==void 0&&(e=e<=l?e:l),t!==void 0&&(e=e>=t?e:t)),e}oc.exports=YV});var cc=R((mk,nc)=>{var QV=/\s/;function JV(e){for(var t=e.length;t--&&QV.test(e.charAt(t)););return t}nc.exports=JV});var mc=R((hk,Cc)=>{var ev=cc(),tv=/^\s+/;function lv(e){return e&&e.slice(0,ev(e)+1).replace(tv,"")}Cc.exports=lv});var c9=R((wk,hc)=>{function rv(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}hc.exports=rv});var ti=R((gk,wc)=>{var iv=typeof global=="object"&&global&&global.Object===Object&&global;wc.exports=iv});var G4=R((uk,gc)=>{var sv=ti(),ov=typeof self=="object"&&self&&self.Object===Object&&self,av=sv||ov||Function("return this")();gc.exports=av});var _7=R((dk,uc)=>{var nv=G4(),cv=nv.Symbol;uc.exports=cv});var Vc=R((Hk,Lc)=>{var dc=_7(),Hc=Object.prototype,Cv=Hc.hasOwnProperty,mv=Hc.toString,ae=dc?dc.toStringTag:void 0;function hv(e){var t=Cv.call(e,ae),l=e[ae];try{e[ae]=void 0;var r=!0}catch(s){}var i=mv.call(e);return r&&(t?e[ae]=l:delete e[ae]),i}Lc.exports=hv});var pc=R((Lk,vc)=>{var wv=Object.prototype,gv=wv.toString;function uv(e){return gv.call(e)}vc.exports=uv});var P7=R((Vk,Mc)=>{var fc=_7(),dv=Vc(),Hv=pc(),Lv="[object Null]",Vv="[object Undefined]",xc=fc?fc.toStringTag:void 0;function vv(e){return e==null?e===void 0?Vv:Lv:xc&&xc in Object(e)?dv(e):Hv(e)}Mc.exports=vv});var T7=R((vk,Zc)=>{function pv(e){return e!=null&&typeof e=="object"}Zc.exports=pv});var ne=R((pk,Ec)=>{var fv=P7(),xv=T7(),Mv="[object Symbol]";function Zv(e){return typeof e=="symbol"||xv(e)&&fv(e)==Mv}Ec.exports=Zv});var V6=R((fk,zc)=>{var Ev=mc(),Nc=c9(),Nv=ne(),Rc=NaN,Rv=/^[-+]0x[0-9a-f]+$/i,zv=/^0b[01]+$/i,yv=/^0o[0-7]+$/i,Bv=parseInt;function Sv(e){if(typeof e=="number")return e;if(Nv(e))return Rc;if(Nc(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Nc(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Ev(e);var l=zv.test(e);return l||yv.test(e)?Bv(e.slice(2),l?2:8):Rv.test(e)?Rc:+e}zc.exports=Sv});var D7=R((xk,yc)=>{var Fv=ac(),li=V6();function kv(e,t,l){return l===void 0&&(l=t,t=void 0),l!==void 0&&(l=li(l),l=l===l?l:0),t!==void 0&&(t=li(t),t=t===t?t:0),Fv(li(e),t,l)}yc.exports=kv});var ri=R((Mk,Bc)=>{var bv=P7(),_v=c9(),Pv="[object AsyncFunction]",Tv="[object Function]",Dv="[object GeneratorFunction]",Iv="[object Proxy]";function Ov(e){if(!_v(e))return!1;var t=bv(e);return t==Tv||t==Dv||t==Pv||t==Iv}Bc.exports=Ov});var Fc=R((Zk,Sc)=>{var Av=G4(),Wv=Av["__core-js_shared__"];Sc.exports=Wv});var _c=R((Ek,bc)=>{var ii=Fc(),kc=function(){var e=/[^.]+$/.exec(ii&&ii.keys&&ii.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function $v(e){return!!kc&&kc in e}bc.exports=$v});var si=R((Nk,Pc)=>{var Uv=Function.prototype,qv=Uv.toString;function jv(e){if(e!=null){try{return qv.call(e)}catch(t){}try{return e+""}catch(t){}}return""}Pc.exports=jv});var Dc=R((Rk,Tc)=>{var Gv=ri(),Kv=_c(),Xv=c9(),Yv=si(),Qv=/[\\^$.*+?()[\]{}|]/g,Jv=/^\[object .+?Constructor\]$/,ep=Function.prototype,tp=Object.prototype,lp=ep.toString,rp=tp.hasOwnProperty,ip=RegExp("^"+lp.call(rp).replace(Qv,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function sp(e){if(!Xv(e)||Kv(e))return!1;var t=Gv(e)?ip:Jv;return t.test(Yv(e))}Tc.exports=sp});var Oc=R((zk,Ic)=>{function op(e,t){return e==null?void 0:e[t]}Ic.exports=op});var C9=R((yk,Ac)=>{var ap=Dc(),np=Oc();function cp(e,t){var l=np(e,t);return ap(l)?l:void 0}Ac.exports=cp});var ce=R((Bk,Wc)=>{var Cp=C9(),mp=Cp(Object,"create");Wc.exports=mp});var qc=R((Sk,Uc)=>{var $c=ce();function hp(){this.__data__=$c?$c(null):{},this.size=0}Uc.exports=hp});var Gc=R((Fk,jc)=>{function wp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}jc.exports=wp});var Xc=R((kk,Kc)=>{var gp=ce(),up="__lodash_hash_undefined__",dp=Object.prototype,Hp=dp.hasOwnProperty;function Lp(e){var t=this.__data__;if(gp){var l=t[e];return l===up?void 0:l}return Hp.call(t,e)?t[e]:void 0}Kc.exports=Lp});var Qc=R((bk,Yc)=>{var Vp=ce(),vp=Object.prototype,pp=vp.hasOwnProperty;function fp(e){var t=this.__data__;return Vp?t[e]!==void 0:pp.call(t,e)}Yc.exports=fp});var eC=R((_k,Jc)=>{var xp=ce(),Mp="__lodash_hash_undefined__";function Zp(e,t){var l=this.__data__;return this.size+=this.has(e)?0:1,l[e]=xp&&t===void 0?Mp:t,this}Jc.exports=Zp});var lC=R((Pk,tC)=>{var Ep=qc(),Np=Gc(),Rp=Xc(),zp=Qc(),yp=eC();function I7(e){var t=-1,l=e==null?0:e.length;for(this.clear();++t{function Bp(){this.__data__=[],this.size=0}rC.exports=Bp});var v6=R((Dk,sC)=>{function Sp(e,t){return e===t||e!==e&&t!==t}sC.exports=Sp});var Ce=R((Ik,oC)=>{var Fp=v6();function kp(e,t){for(var l=e.length;l--;)if(Fp(e[l][0],t))return l;return-1}oC.exports=kp});var nC=R((Ok,aC)=>{var bp=Ce(),_p=Array.prototype,Pp=_p.splice;function Tp(e){var t=this.__data__,l=bp(t,e);if(l<0)return!1;var r=t.length-1;return l==r?t.pop():Pp.call(t,l,1),--this.size,!0}aC.exports=Tp});var CC=R((Ak,cC)=>{var Dp=Ce();function Ip(e){var t=this.__data__,l=Dp(t,e);return l<0?void 0:t[l][1]}cC.exports=Ip});var hC=R((Wk,mC)=>{var Op=Ce();function Ap(e){return Op(this.__data__,e)>-1}mC.exports=Ap});var gC=R(($k,wC)=>{var Wp=Ce();function $p(e,t){var l=this.__data__,r=Wp(l,e);return r<0?(++this.size,l.push([e,t])):l[r][1]=t,this}wC.exports=$p});var me=R((Uk,uC)=>{var Up=iC(),qp=nC(),jp=CC(),Gp=hC(),Kp=gC();function O7(e){var t=-1,l=e==null?0:e.length;for(this.clear();++t{var Xp=C9(),Yp=G4(),Qp=Xp(Yp,"Map");dC.exports=Qp});var VC=R((jk,LC)=>{var HC=lC(),Jp=me(),ef=p6();function tf(){this.size=0,this.__data__={hash:new HC,map:new(ef||Jp),string:new HC}}LC.exports=tf});var pC=R((Gk,vC)=>{function lf(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}vC.exports=lf});var he=R((Kk,fC)=>{var rf=pC();function sf(e,t){var l=e.__data__;return rf(t)?l[typeof t=="string"?"string":"hash"]:l.map}fC.exports=sf});var MC=R((Xk,xC)=>{var of=he();function af(e){var t=of(this,e).delete(e);return this.size-=t?1:0,t}xC.exports=af});var EC=R((Yk,ZC)=>{var nf=he();function cf(e){return nf(this,e).get(e)}ZC.exports=cf});var RC=R((Qk,NC)=>{var Cf=he();function mf(e){return Cf(this,e).has(e)}NC.exports=mf});var yC=R((Jk,zC)=>{var hf=he();function wf(e,t){var l=hf(this,e),r=l.size;return l.set(e,t),this.size+=l.size==r?0:1,this}zC.exports=wf});var f6=R((eb,BC)=>{var gf=VC(),uf=MC(),df=EC(),Hf=RC(),Lf=yC();function A7(e){var t=-1,l=e==null?0:e.length;for(this.clear();++t{var Vf="__lodash_hash_undefined__";function vf(e){return this.__data__.set(e,Vf),this}SC.exports=vf});var bC=R((lb,kC)=>{function pf(e){return this.__data__.has(e)}kC.exports=pf});var oi=R((rb,_C)=>{var ff=f6(),xf=FC(),Mf=bC();function x6(e){var t=-1,l=e==null?0:e.length;for(this.__data__=new ff;++t{function Zf(e,t,l,r){for(var i=e.length,s=l+(r?1:-1);r?s--:++s{function Ef(e){return e!==e}DC.exports=Ef});var AC=R((ob,OC)=>{function Nf(e,t,l){for(var r=l-1,i=e.length;++r{var Rf=TC(),zf=IC(),yf=AC();function Bf(e,t,l){return t===t?yf(e,t,l):Rf(e,zf,l)}WC.exports=Bf});var qC=R((nb,UC)=>{var Sf=$C();function Ff(e,t){var l=e==null?0:e.length;return!!l&&Sf(e,t,0)>-1}UC.exports=Ff});var GC=R((cb,jC)=>{function kf(e,t,l){for(var r=-1,i=e==null?0:e.length;++r{function bf(e,t){return e.has(t)}KC.exports=bf});var ni=R((mb,XC)=>{var _f=C9(),Pf=G4(),Tf=_f(Pf,"Set");XC.exports=Tf});var QC=R((hb,YC)=>{function Df(){}YC.exports=Df});var M6=R((wb,JC)=>{function If(e){var t=-1,l=Array(e.size);return e.forEach(function(r){l[++t]=r}),l}JC.exports=If});var tm=R((gb,em)=>{var ci=ni(),Of=QC(),Af=M6(),Wf=1/0,$f=ci&&1/Af(new ci([,-0]))[1]==Wf?function(e){return new ci(e)}:Of;em.exports=$f});var rm=R((ub,lm)=>{var Uf=oi(),qf=qC(),jf=GC(),Gf=ai(),Kf=tm(),Xf=M6(),Yf=200;function Qf(e,t,l){var r=-1,i=qf,s=e.length,o=!0,a=[],n=a;if(l)o=!1,i=jf;else if(s>=Yf){var c=t?null:Kf(e);if(c)return Xf(c);o=!1,i=Gf,n=new Uf}else n=t?[]:a;e:for(;++r{var Jf=rm();function ex(e){return e&&e.length?Jf(e):[]}im.exports=ex});var Ci=R((Hb,om)=>{function tx(e,t){for(var l=-1,r=t.length,i=e.length;++l{var lx=P7(),rx=T7(),ix="[object Arguments]";function sx(e){return rx(e)&&lx(e)==ix}am.exports=sx});var Z6=R((Vb,mm)=>{var cm=nm(),ox=T7(),Cm=Object.prototype,ax=Cm.hasOwnProperty,nx=Cm.propertyIsEnumerable,cx=cm(function(){return arguments}())?cm:function(e){return ox(e)&&ax.call(e,"callee")&&!nx.call(e,"callee")};mm.exports=cx});var K4=R((vb,hm)=>{var Cx=Array.isArray;hm.exports=Cx});var dm=R((pb,um)=>{var wm=_7(),mx=Z6(),hx=K4(),gm=wm?wm.isConcatSpreadable:void 0;function wx(e){return hx(e)||mx(e)||!!(gm&&e&&e[gm])}um.exports=wx});var Vm=R((fb,Lm)=>{var gx=Ci(),ux=dm();function Hm(e,t,l,r,i){var s=-1,o=e.length;for(l||(l=ux),i||(i=[]);++s0&&l(a)?t>1?Hm(a,t-1,l,r,i):gx(i,a):r||(i[i.length]=a)}return i}Lm.exports=Hm});var pm=R((xb,vm)=>{var dx=Vm();function Hx(e){var t=e==null?0:e.length;return t?dx(e,1):[]}vm.exports=Hx});var xm=R((Mb,fm)=>{var Lx=Math.ceil,Vx=Math.max;function vx(e,t,l,r){for(var i=-1,s=Vx(Lx((t-e)/(l||1)),0),o=Array(s);s--;)o[r?s:++i]=e,e+=l;return o}fm.exports=vx});var E6=R((Zb,Mm)=>{var px=9007199254740991;function fx(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=px}Mm.exports=fx});var N6=R((Eb,Zm)=>{var xx=ri(),Mx=E6();function Zx(e){return e!=null&&Mx(e.length)&&!xx(e)}Zm.exports=Zx});var R6=R((Nb,Em)=>{var Ex=9007199254740991,Nx=/^(?:0|[1-9]\d*)$/;function Rx(e,t){var l=typeof e;return t=t==null?Ex:t,!!t&&(l=="number"||l!="symbol"&&Nx.test(e))&&e>-1&&e%1==0&&e{var zx=v6(),yx=N6(),Bx=R6(),Sx=c9();function Fx(e,t,l){if(!Sx(l))return!1;var r=typeof t;return(r=="number"?yx(l)&&Bx(t,l.length):r=="string"&&t in l)?zx(l[t],e):!1}Nm.exports=Fx});var Bm=R((zb,ym)=>{var kx=V6(),zm=1/0,bx=17976931348623157e292;function _x(e){if(!e)return e===0?e:0;if(e=kx(e),e===zm||e===-zm){var t=e<0?-1:1;return t*bx}return e===e?e:0}ym.exports=_x});var Fm=R((yb,Sm)=>{var Px=xm(),Tx=Rm(),mi=Bm();function Dx(e){return function(t,l,r){return r&&typeof r!="number"&&Tx(t,l,r)&&(l=r=void 0),t=mi(t),l===void 0?(l=t,t=0):l=mi(l),r=r===void 0?t{var Ix=Fm(),Ox=Ix();km.exports=Ox});var _m=R((Sb,bm)=>{var Ax=G4(),Wx=function(){return Ax.Date.now()};bm.exports=Wx});var z6=R((Fb,Tm)=>{var $x=c9(),wi=_m(),Pm=V6(),Ux="Expected a function",qx=Math.max,jx=Math.min;function Gx(e,t,l){var r,i,s,o,a,n,c=0,C=!1,m=!1,h=!0;if(typeof e!="function")throw new TypeError(Ux);t=Pm(t)||0,$x(l)&&(C=!!l.leading,m="maxWait"in l,s=m?qx(Pm(l.maxWait)||0,t):s,h="trailing"in l?!!l.trailing:h);function u(E){var p=r,x=i;return r=i=void 0,c=E,o=e.apply(x,p),o}function d(E){return c=E,a=setTimeout(w,t),C?u(E):o}function H(E){var p=E-n,x=E-c,Z=t-p;return m?jx(Z,s-x):Z}function f(E){var p=E-n,x=E-c;return n===void 0||p>=t||p<0||m&&x>=s}function w(){var E=wi();if(f(E))return g(E);a=setTimeout(w,H(E))}function g(E){return a=void 0,h&&r?u(E):(r=i=void 0,o)}function L(){a!==void 0&&clearTimeout(a),c=0,r=n=i=a=void 0}function v(){return a===void 0?o:g(wi())}function M(){var E=wi(),p=f(E);if(r=arguments,i=this,n=E,p){if(a===void 0)return d(n);if(m)return clearTimeout(a),a=setTimeout(w,t),u(n)}return a===void 0&&(a=setTimeout(w,t)),o}return M.cancel=L,M.flush=v,M}Tm.exports=Gx});var Im=R((kb,Dm)=>{var Kx=Object.prototype,Xx=Kx.hasOwnProperty;function Yx(e,t){return e!=null&&Xx.call(e,t)}Dm.exports=Yx});var y6=R((bb,Om)=>{var Qx=K4(),Jx=ne(),eM=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tM=/^\w*$/;function lM(e,t){if(Qx(e))return!1;var l=typeof e;return l=="number"||l=="symbol"||l=="boolean"||e==null||Jx(e)?!0:tM.test(e)||!eM.test(e)||t!=null&&e in Object(t)}Om.exports=lM});var $m=R((_b,Wm)=>{var Am=f6(),rM="Expected a function";function gi(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(rM);var l=function(){var r=arguments,i=t?t.apply(this,r):r[0],s=l.cache;if(s.has(i))return s.get(i);var o=e.apply(this,r);return l.cache=s.set(i,o)||s,o};return l.cache=new(gi.Cache||Am),l}gi.Cache=Am;Wm.exports=gi});var qm=R((Pb,Um)=>{var iM=$m(),sM=500;function oM(e){var t=iM(e,function(r){return l.size===sM&&l.clear(),r}),l=t.cache;return t}Um.exports=oM});var Gm=R((Tb,jm)=>{var aM=qm(),nM=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cM=/\\(\\)?/g,CM=aM(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(nM,function(l,r,i,s){t.push(i?s.replace(cM,"$1"):r||l)}),t});jm.exports=CM});var Xm=R((Db,Km)=>{function mM(e,t){for(var l=-1,r=e==null?0:e.length,i=Array(r);++l{var Ym=_7(),hM=Xm(),wM=K4(),gM=ne(),uM=1/0,Qm=Ym?Ym.prototype:void 0,Jm=Qm?Qm.toString:void 0;function eh(e){if(typeof e=="string")return e;if(wM(e))return hM(e,eh)+"";if(gM(e))return Jm?Jm.call(e):"";var t=e+"";return t=="0"&&1/e==-uM?"-0":t}th.exports=eh});var ih=R((Ob,rh)=>{var dM=lh();function HM(e){return e==null?"":dM(e)}rh.exports=HM});var ui=R((Ab,sh)=>{var LM=K4(),VM=y6(),vM=Gm(),pM=ih();function fM(e,t){return LM(e)?e:VM(e,t)?[e]:vM(pM(e))}sh.exports=fM});var we=R((Wb,oh)=>{var xM=ne(),MM=1/0;function ZM(e){if(typeof e=="string"||xM(e))return e;var t=e+"";return t=="0"&&1/e==-MM?"-0":t}oh.exports=ZM});var di=R(($b,ah)=>{var EM=ui(),NM=Z6(),RM=K4(),zM=R6(),yM=E6(),BM=we();function SM(e,t,l){t=EM(t,e);for(var r=-1,i=t.length,s=!1;++r{var FM=Im(),kM=di();function bM(e,t){return e!=null&&kM(e,t,FM)}nh.exports=bM});var mh=R((qb,Ch)=>{var _M=z6(),PM=c9(),TM="Expected a function";function DM(e,t,l){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(TM);return PM(l)&&(r="leading"in l?!!l.leading:r,i="trailing"in l?!!l.trailing:i),_M(e,t,{leading:r,maxWait:t,trailing:i})}Ch.exports=DM});var uh=R((Gb,gh)=>{var WM=C9(),$M=function(){try{var e=WM(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();gh.exports=$M});var Lh=R((Kb,Hh)=>{var dh=uh();function UM(e,t,l){t=="__proto__"&&dh?dh(e,t,{configurable:!0,enumerable:!0,value:l,writable:!0}):e[t]=l}Hh.exports=UM});var vh=R((Xb,Vh)=>{function qM(e,t,l,r){for(var i=-1,s=e==null?0:e.length;++i{function jM(e){return function(t,l,r){for(var i=-1,s=Object(t),o=r(t),a=o.length;a--;){var n=o[e?a:++i];if(l(s[n],n,s)===!1)break}return t}}ph.exports=jM});var Mh=R((Qb,xh)=>{var GM=fh(),KM=GM();xh.exports=KM});var Eh=R((Jb,Zh)=>{function XM(e,t){for(var l=-1,r=Array(e);++l{function YM(){return!1}Nh.exports=YM});var Li=R((ue,U7)=>{var QM=G4(),JM=Rh(),Bh=typeof ue=="object"&&ue&&!ue.nodeType&&ue,zh=Bh&&typeof U7=="object"&&U7&&!U7.nodeType&&U7,eZ=zh&&zh.exports===Bh,yh=eZ?QM.Buffer:void 0,tZ=yh?yh.isBuffer:void 0,lZ=tZ||JM;U7.exports=lZ});var Fh=R((t_,Sh)=>{var rZ=P7(),iZ=E6(),sZ=T7(),oZ="[object Arguments]",aZ="[object Array]",nZ="[object Boolean]",cZ="[object Date]",CZ="[object Error]",mZ="[object Function]",hZ="[object Map]",wZ="[object Number]",gZ="[object Object]",uZ="[object RegExp]",dZ="[object Set]",HZ="[object String]",LZ="[object WeakMap]",VZ="[object ArrayBuffer]",vZ="[object DataView]",pZ="[object Float32Array]",fZ="[object Float64Array]",xZ="[object Int8Array]",MZ="[object Int16Array]",ZZ="[object Int32Array]",EZ="[object Uint8Array]",NZ="[object Uint8ClampedArray]",RZ="[object Uint16Array]",zZ="[object Uint32Array]",q2={};q2[pZ]=q2[fZ]=q2[xZ]=q2[MZ]=q2[ZZ]=q2[EZ]=q2[NZ]=q2[RZ]=q2[zZ]=!0;q2[oZ]=q2[aZ]=q2[VZ]=q2[nZ]=q2[vZ]=q2[cZ]=q2[CZ]=q2[mZ]=q2[hZ]=q2[wZ]=q2[gZ]=q2[uZ]=q2[dZ]=q2[HZ]=q2[LZ]=!1;function yZ(e){return sZ(e)&&iZ(e.length)&&!!q2[rZ(e)]}Sh.exports=yZ});var bh=R((l_,kh)=>{function BZ(e){return function(t){return e(t)}}kh.exports=BZ});var Ph=R((de,q7)=>{var SZ=ti(),_h=typeof de=="object"&&de&&!de.nodeType&&de,He=_h&&typeof q7=="object"&&q7&&!q7.nodeType&&q7,FZ=He&&He.exports===_h,Vi=FZ&&SZ.process,kZ=function(){try{var e=He&&He.require&&He.require("util").types;return e||Vi&&Vi.binding&&Vi.binding("util")}catch(t){}}();q7.exports=kZ});var vi=R((r_,Ih)=>{var bZ=Fh(),_Z=bh(),Th=Ph(),Dh=Th&&Th.isTypedArray,PZ=Dh?_Z(Dh):bZ;Ih.exports=PZ});var Ah=R((i_,Oh)=>{var TZ=Eh(),DZ=Z6(),IZ=K4(),OZ=Li(),AZ=R6(),WZ=vi(),$Z=Object.prototype,UZ=$Z.hasOwnProperty;function qZ(e,t){var l=IZ(e),r=!l&&DZ(e),i=!l&&!r&&OZ(e),s=!l&&!r&&!i&&WZ(e),o=l||r||i||s,a=o?TZ(e.length,String):[],n=a.length;for(var c in e)(t||UZ.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||AZ(c,n)))&&a.push(c);return a}Oh.exports=qZ});var $h=R((s_,Wh)=>{var jZ=Object.prototype;function GZ(e){var t=e&&e.constructor,l=typeof t=="function"&&t.prototype||jZ;return e===l}Wh.exports=GZ});var qh=R((o_,Uh)=>{function KZ(e,t){return function(l){return e(t(l))}}Uh.exports=KZ});var Gh=R((a_,jh)=>{var XZ=qh(),YZ=XZ(Object.keys,Object);jh.exports=YZ});var Xh=R((n_,Kh)=>{var QZ=$h(),JZ=Gh(),eE=Object.prototype,tE=eE.hasOwnProperty;function lE(e){if(!QZ(e))return JZ(e);var t=[];for(var l in Object(e))tE.call(e,l)&&l!="constructor"&&t.push(l);return t}Kh.exports=lE});var B6=R((c_,Yh)=>{var rE=Ah(),iE=Xh(),sE=N6();function oE(e){return sE(e)?rE(e):iE(e)}Yh.exports=oE});var Jh=R((C_,Qh)=>{var aE=Mh(),nE=B6();function cE(e,t){return e&&aE(e,t,nE)}Qh.exports=cE});var tw=R((m_,ew)=>{var CE=N6();function mE(e,t){return function(l,r){if(l==null)return l;if(!CE(l))return e(l,r);for(var i=l.length,s=t?i:-1,o=Object(l);(t?s--:++s{var hE=Jh(),wE=tw(),gE=wE(hE);lw.exports=gE});var sw=R((w_,iw)=>{var uE=rw();function dE(e,t,l,r){return uE(e,function(i,s,o){t(r,i,l(i),o)}),r}iw.exports=dE});var aw=R((g_,ow)=>{var HE=me();function LE(){this.__data__=new HE,this.size=0}ow.exports=LE});var cw=R((u_,nw)=>{function VE(e){var t=this.__data__,l=t.delete(e);return this.size=t.size,l}nw.exports=VE});var mw=R((d_,Cw)=>{function vE(e){return this.__data__.get(e)}Cw.exports=vE});var ww=R((H_,hw)=>{function pE(e){return this.__data__.has(e)}hw.exports=pE});var uw=R((L_,gw)=>{var fE=me(),xE=p6(),ME=f6(),ZE=200;function EE(e,t){var l=this.__data__;if(l instanceof fE){var r=l.__data__;if(!xE||r.length{var NE=me(),RE=aw(),zE=cw(),yE=mw(),BE=ww(),SE=uw();function j7(e){var t=this.__data__=new NE(e);this.size=t.size}j7.prototype.clear=RE;j7.prototype.delete=zE;j7.prototype.get=yE;j7.prototype.has=BE;j7.prototype.set=SE;dw.exports=j7});var Lw=R((v_,Hw)=>{function FE(e,t){for(var l=-1,r=e==null?0:e.length;++l{var kE=oi(),bE=Lw(),_E=ai(),PE=1,TE=2;function DE(e,t,l,r,i,s){var o=l&PE,a=e.length,n=t.length;if(a!=n&&!(o&&n>a))return!1;var c=s.get(e),C=s.get(t);if(c&&C)return c==t&&C==e;var m=-1,h=!0,u=l&TE?new kE:void 0;for(s.set(e,t),s.set(t,e);++m{var IE=G4(),OE=IE.Uint8Array;vw.exports=OE});var xw=R((x_,fw)=>{function AE(e){var t=-1,l=Array(e.size);return e.forEach(function(r,i){l[++t]=[i,r]}),l}fw.exports=AE});var Rw=R((M_,Nw)=>{var Mw=_7(),Zw=pw(),WE=v6(),$E=fi(),UE=xw(),qE=M6(),jE=1,GE=2,KE="[object Boolean]",XE="[object Date]",YE="[object Error]",QE="[object Map]",JE="[object Number]",eN="[object RegExp]",tN="[object Set]",lN="[object String]",rN="[object Symbol]",iN="[object ArrayBuffer]",sN="[object DataView]",Ew=Mw?Mw.prototype:void 0,xi=Ew?Ew.valueOf:void 0;function oN(e,t,l,r,i,s,o){switch(l){case sN:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case iN:return!(e.byteLength!=t.byteLength||!s(new Zw(e),new Zw(t)));case KE:case XE:case JE:return WE(+e,+t);case YE:return e.name==t.name&&e.message==t.message;case eN:case lN:return e==t+"";case QE:var a=UE;case tN:var n=r&jE;if(a||(a=qE),e.size!=t.size&&!n)return!1;var c=o.get(e);if(c)return c==t;r|=GE,o.set(e,t);var C=$E(a(e),a(t),r,i,s,o);return o.delete(e),C;case rN:if(xi)return xi.call(e)==xi.call(t)}return!1}Nw.exports=oN});var yw=R((Z_,zw)=>{var aN=Ci(),nN=K4();function cN(e,t,l){var r=t(e);return nN(e)?r:aN(r,l(e))}zw.exports=cN});var Sw=R((E_,Bw)=>{function CN(e,t){for(var l=-1,r=e==null?0:e.length,i=0,s=[];++l{function mN(){return[]}Fw.exports=mN});var Pw=R((R_,_w)=>{var hN=Sw(),wN=kw(),gN=Object.prototype,uN=gN.propertyIsEnumerable,bw=Object.getOwnPropertySymbols,dN=bw?function(e){return e==null?[]:(e=Object(e),hN(bw(e),function(t){return uN.call(e,t)}))}:wN;_w.exports=dN});var Dw=R((z_,Tw)=>{var HN=yw(),LN=Pw(),VN=B6();function vN(e){return HN(e,VN,LN)}Tw.exports=vN});var Aw=R((y_,Ow)=>{var Iw=Dw(),pN=1,fN=Object.prototype,xN=fN.hasOwnProperty;function MN(e,t,l,r,i,s){var o=l&pN,a=Iw(e),n=a.length,c=Iw(t),C=c.length;if(n!=C&&!o)return!1;for(var m=n;m--;){var h=a[m];if(!(o?h in t:xN.call(t,h)))return!1}var u=s.get(e),d=s.get(t);if(u&&d)return u==t&&d==e;var H=!0;s.set(e,t),s.set(t,e);for(var f=o;++m{var ZN=C9(),EN=G4(),NN=ZN(EN,"DataView");Ww.exports=NN});var qw=R((S_,Uw)=>{var RN=C9(),zN=G4(),yN=RN(zN,"Promise");Uw.exports=yN});var Gw=R((F_,jw)=>{var BN=C9(),SN=G4(),FN=BN(SN,"WeakMap");jw.exports=FN});var lg=R((k_,tg)=>{var Mi=$w(),Zi=p6(),Ei=qw(),Ni=ni(),Ri=Gw(),eg=P7(),G7=si(),Kw="[object Map]",kN="[object Object]",Xw="[object Promise]",Yw="[object Set]",Qw="[object WeakMap]",Jw="[object DataView]",bN=G7(Mi),_N=G7(Zi),PN=G7(Ei),TN=G7(Ni),DN=G7(Ri),$9=eg;(Mi&&$9(new Mi(new ArrayBuffer(1)))!=Jw||Zi&&$9(new Zi)!=Kw||Ei&&$9(Ei.resolve())!=Xw||Ni&&$9(new Ni)!=Yw||Ri&&$9(new Ri)!=Qw)&&($9=function(e){var t=eg(e),l=t==kN?e.constructor:void 0,r=l?G7(l):"";if(r)switch(r){case bN:return Jw;case _N:return Kw;case PN:return Xw;case TN:return Yw;case DN:return Qw}return t});tg.exports=$9});var Cg=R((b_,cg)=>{var zi=pi(),IN=fi(),ON=Rw(),AN=Aw(),rg=lg(),ig=K4(),sg=Li(),WN=vi(),$N=1,og="[object Arguments]",ag="[object Array]",S6="[object Object]",UN=Object.prototype,ng=UN.hasOwnProperty;function qN(e,t,l,r,i,s){var o=ig(e),a=ig(t),n=o?ag:rg(e),c=a?ag:rg(t);n=n==og?S6:n,c=c==og?S6:c;var C=n==S6,m=c==S6,h=n==c;if(h&&sg(e)){if(!sg(t))return!1;o=!0,C=!1}if(h&&!C)return s||(s=new zi),o||WN(e)?IN(e,t,l,r,i,s):ON(e,t,n,l,r,i,s);if(!(l&$N)){var u=C&&ng.call(e,"__wrapped__"),d=m&&ng.call(t,"__wrapped__");if(u||d){var H=u?e.value():e,f=d?t.value():t;return s||(s=new zi),i(H,f,l,r,s)}}return h?(s||(s=new zi),AN(e,t,l,r,i,s)):!1}cg.exports=qN});var yi=R((__,wg)=>{var jN=Cg(),mg=T7();function hg(e,t,l,r,i){return e===t?!0:e==null||t==null||!mg(e)&&!mg(t)?e!==e&&t!==t:jN(e,t,l,r,hg,i)}wg.exports=hg});var ug=R((P_,gg)=>{var GN=pi(),KN=yi(),XN=1,YN=2;function QN(e,t,l,r){var i=l.length,s=i,o=!r;if(e==null)return!s;for(e=Object(e);i--;){var a=l[i];if(o&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++i{var JN=c9();function eR(e){return e===e&&!JN(e)}dg.exports=eR});var Lg=R((D_,Hg)=>{var tR=Bi(),lR=B6();function rR(e){for(var t=lR(e),l=t.length;l--;){var r=t[l],i=e[r];t[l]=[r,i,tR(i)]}return t}Hg.exports=rR});var Si=R((I_,Vg)=>{function iR(e,t){return function(l){return l==null?!1:l[e]===t&&(t!==void 0||e in Object(l))}}Vg.exports=iR});var pg=R((O_,vg)=>{var sR=ug(),oR=Lg(),aR=Si();function nR(e){var t=oR(e);return t.length==1&&t[0][2]?aR(t[0][0],t[0][1]):function(l){return l===e||sR(l,e,t)}}vg.exports=nR});var Fi=R((A_,fg)=>{var cR=ui(),CR=we();function mR(e,t){t=cR(t,e);for(var l=0,r=t.length;e!=null&&l{var hR=Fi();function wR(e,t,l){var r=e==null?void 0:hR(e,t);return r===void 0?l:r}xg.exports=wR});var Eg=R(($_,Zg)=>{function gR(e,t){return e!=null&&t in Object(e)}Zg.exports=gR});var Rg=R((U_,Ng)=>{var uR=Eg(),dR=di();function HR(e,t){return e!=null&&dR(e,t,uR)}Ng.exports=HR});var yg=R((q_,zg)=>{var LR=yi(),VR=Mg(),vR=Rg(),pR=y6(),fR=Bi(),xR=Si(),MR=we(),ZR=1,ER=2;function NR(e,t){return pR(e)&&fR(t)?xR(MR(e),t):function(l){var r=VR(l,e);return r===void 0&&r===t?vR(l,e):LR(t,r,ZR|ER)}}zg.exports=NR});var Sg=R((j_,Bg)=>{function RR(e){return e}Bg.exports=RR});var kg=R((G_,Fg)=>{function zR(e){return function(t){return t==null?void 0:t[e]}}Fg.exports=zR});var _g=R((K_,bg)=>{var yR=Fi();function BR(e){return function(t){return yR(t,e)}}bg.exports=BR});var Tg=R((X_,Pg)=>{var SR=kg(),FR=_g(),kR=y6(),bR=we();function _R(e){return kR(e)?SR(bR(e)):FR(e)}Pg.exports=_R});var Ig=R((Y_,Dg)=>{var PR=pg(),TR=yg(),DR=Sg(),IR=K4(),OR=Tg();function AR(e){return typeof e=="function"?e:e==null?DR:typeof e=="object"?IR(e)?TR(e[0],e[1]):PR(e):OR(e)}Dg.exports=AR});var Ag=R((Q_,Og)=>{var WR=vh(),$R=sw(),UR=Ig(),qR=K4();function jR(e,t){return function(l,r){var i=qR(l)?WR:$R,s=t?t():{};return i(l,e,UR(r,2),s)}}Og.exports=jR});var $g=R((J_,Wg)=>{var GR=Lh(),KR=Ag(),XR=Object.prototype,YR=XR.hasOwnProperty,QR=KR(function(e,t,l){YR.call(e,l)?e[l].push(t):GR(e,l,[t])});Wg.exports=QR});var qg=R((eP,Ug)=>{"use strict";var JR="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";Ug.exports=JR});var Xg=R((tP,Kg)=>{"use strict";var ez=qg();function jg(){}function Gg(){}Gg.resetWarningCache=jg;Kg.exports=function(){function e(r,i,s,o,a,n){if(n!==ez){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var l={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Gg,resetWarningCache:jg};return l.PropTypes=l,l}});var Qg=R((iP,Yg)=>{Yg.exports=Xg()();var lP,rP});var Jg=R(F6=>{(function(e,t){if(typeof define=="function"&&define.amd)define(["exports","react","prop-types"],t);else if(typeof F6!="undefined")t(F6,K1(),Qg());else{var l={exports:{}};t(l.exports,e.react,e.propTypes),e.reactSwipe=l.exports}})(F6,function(e,t,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setHasSupportToCaptureOption=u;var r=s(t),i=s(l);function s(w){return w&&w.__esModule?w:{default:w}}var o=Object.assign||function(w){for(var g=1;g=0||Object.prototype.hasOwnProperty.call(w,v)&&(L[v]=w[v]);return L}function n(w,g){if(!(w instanceof g))throw new TypeError("Cannot call a class as a function")}var c=function(){function w(g,L){for(var v=0;v0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return h?w:w.capture}function H(w){if("touches"in w){var g=w.touches[0],L=g.pageX,v=g.pageY;return{x:L,y:v}}var M=w.screenX,E=w.screenY;return{x:M,y:E}}var f=function(w){m(g,w);function g(){var L;n(this,g);for(var v=arguments.length,M=Array(v),E=0;EM&&this.props.onSwipeRight(1,v),this.movePosition.deltaY<-M?this.props.onSwipeUp(1,v):this.movePosition.deltaY>M&&this.props.onSwipeDown(1,v)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(v){this.swiper=v,this.props.innerRef(v)}},{key:"render",value:function(){var v=this.props,M=v.tagName,E=v.className,p=v.style,x=v.children,Z=v.allowMouseEvents,N=v.onSwipeUp,F=v.onSwipeDown,b=v.onSwipeLeft,B=v.onSwipeRight,U=v.onSwipeStart,g1=v.onSwipeMove,h1=v.onSwipeEnd,J=v.innerRef,n1=v.tolerance,O=a(v,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return r.default.createElement(this.props.tagName,o({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:E,style:p},O),x)}}]),g}(t.Component);f.displayName="ReactSwipe",f.propTypes={tagName:i.default.string,className:i.default.string,style:i.default.object,children:i.default.node,allowMouseEvents:i.default.bool,onSwipeUp:i.default.func,onSwipeDown:i.default.func,onSwipeLeft:i.default.func,onSwipeRight:i.default.func,onSwipeStart:i.default.func,onSwipeMove:i.default.func,onSwipeEnd:i.default.func,innerRef:i.default.func,tolerance:i.default.number.isRequired},f.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},e.default=f})});var ki=R(k6=>{(function(e,t){if(typeof define=="function"&&define.amd)define(["exports","./react-swipe"],t);else if(typeof k6!="undefined")t(k6,Jg());else{var l={exports:{}};t(l.exports,e.reactSwipe),e.index=l.exports}})(k6,function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=r(t);function r(i){return i&&i.__esModule?i:{default:i}}e.default=l.default})});var eu=R((aP,b6)=>{(function(){"use strict";var e={}.hasOwnProperty,t="[native code]";function l(){for(var r=[],i=0;i{"use strict";Object.defineProperty(_6,"__esModule",{value:!0});_6.default=void 0;var m9=tz(eu());function tz(e){return e&&e.__esModule?e:{default:e}}function lz(e,t,l){return t in e?Object.defineProperty(e,t,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[t]=l,e}var rz={ROOT:function(t){return(0,m9.default)(lz({"carousel-root":!0},t||"",!!t))},CAROUSEL:function(t){return(0,m9.default)({carousel:!0,"carousel-slider":t})},WRAPPER:function(t,l){return(0,m9.default)({"thumbs-wrapper":!t,"slider-wrapper":t,"axis-horizontal":l==="horizontal","axis-vertical":l!=="horizontal"})},SLIDER:function(t,l){return(0,m9.default)({thumbs:!t,slider:t,animated:!l})},ITEM:function(t,l,r){return(0,m9.default)({thumb:!t,slide:t,selected:l,previous:r})},ARROW_PREV:function(t){return(0,m9.default)({"control-arrow control-prev":!0,"control-disabled":t})},ARROW_NEXT:function(t){return(0,m9.default)({"control-arrow control-next":!0,"control-disabled":t})},DOT:function(t){return(0,m9.default)({dot:!0,selected:t})}};_6.default=rz});var tu=R(P6=>{"use strict";Object.defineProperty(P6,"__esModule",{value:!0});P6.outerWidth=void 0;var iz=function(t){var l=t.offsetWidth,r=getComputedStyle(t);return l+=parseInt(r.marginLeft)+parseInt(r.marginRight),l};P6.outerWidth=iz});var D6=R(T6=>{"use strict";Object.defineProperty(T6,"__esModule",{value:!0});T6.default=void 0;var sz=function(t,l,r){var i=t===0?t:t+l,s=r==="horizontal"?[i,0,0]:[0,i,0],o="translate3d",a="("+s.join(",")+")";return o+a};T6.default=sz});var _i=R(I6=>{"use strict";Object.defineProperty(I6,"__esModule",{value:!0});I6.default=void 0;var oz=function(){return window};I6.default=oz});var Ii=R($6=>{"use strict";Object.defineProperty($6,"__esModule",{value:!0});$6.default=void 0;var X4=cz(K1()),U9=W6(bi()),az=tu(),lu=W6(D6()),nz=W6(ki()),O6=W6(_i());function W6(e){return e&&e.__esModule?e:{default:e}}function iu(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return iu=function(){return e},e}function cz(e){if(e&&e.__esModule)return e;if(e===null||Le(e)!=="object"&&typeof e!="function")return{default:e};var t=iu();if(t&&t.has(e))return t.get(e);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var s=r?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(l,i,s):l[i]=e[i]}return l.default=e,t&&t.set(e,l),l}function Le(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Le=function(l){return typeof l}:Le=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},Le(e)}function Pi(){return Pi=Object.assign||function(e){for(var t=1;t0&&(o=0),c===m&&o<0&&(o=0);var h=i.itemsWrapperRef.clientWidth,u=c+100/(h/o);return i.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(d){i.itemsListRef.style[d]=(0,lu.default)(u,"%",i.props.axis)}),!0}),K0(e4(i),"slideRight",function(s){i.moveTo(i.state.firstItem-(typeof s=="number"?s:1))}),K0(e4(i),"slideLeft",function(s){i.moveTo(i.state.firstItem+(typeof s=="number"?s:1))}),K0(e4(i),"moveTo",function(s){s=s<0?0:s,s=s>=i.state.lastPosition?i.state.lastPosition:s,i.setState({firstItem:s})}),i.state={selectedItem:r.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},i}return mz(l,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(i){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==i.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,O6.default)().addEventListener("resize",this.updateSizes),(0,O6.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,O6.default)().removeEventListener("resize",this.updateSizes),(0,O6.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(i){var s=i;return i>=this.state.lastPosition&&(s=this.state.lastPosition),i1,o=this.state.showArrows&&this.state.firstItem>0,a=this.state.showArrows&&this.state.firstItem{"use strict";Object.defineProperty(U6,"__esModule",{value:!0});U6.default=void 0;var Hz=function(){return document};U6.default=Hz});var Oi=R(P4=>{"use strict";Object.defineProperty(P4,"__esModule",{value:!0});P4.setPosition=P4.getPosition=P4.isKeyboardEvent=P4.defaultStatusFormatter=P4.noop=void 0;var Lz=K1(),Vz=vz(D6());function vz(e){return e&&e.__esModule?e:{default:e}}var pz=function(){};P4.noop=pz;var fz=function(t,l){return"".concat(t," of ").concat(l)};P4.defaultStatusFormatter=fz;var xz=function(t){return t?t.hasOwnProperty("key"):!1};P4.isKeyboardEvent=xz;var Mz=function(t,l){if(l.infiniteLoop&&++t,t===0)return 0;var r=Lz.Children.count(l.children);if(l.centerMode&&l.axis==="horizontal"){var i=-t*l.centerSlidePercentage,s=r-1;return t&&(t!==s||l.infiniteLoop)?i+=(100-l.centerSlidePercentage)/2:t===s&&(i+=100-l.centerSlidePercentage),i}return-t*100};P4.getPosition=Mz;var Zz=function(t,l){var r={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(i){r[i]=(0,Vz.default)(t,"%",l)}),r};P4.setPosition=Zz});var nu=R(h5=>{"use strict";Object.defineProperty(h5,"__esModule",{value:!0});h5.fadeAnimationHandler=h5.slideStopSwipingHandler=h5.slideSwipeAnimationHandler=h5.slideAnimationHandler=void 0;var au=K1(),Ez=Nz(D6()),m5=Oi();function Nz(e){return e&&e.__esModule?e:{default:e}}function ou(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),l.push.apply(l,r)}return l}function q9(e){for(var t=1;to);if(a)return s<0?t.centerMode&&t.centerSlidePercentage&&t.axis==="horizontal"?r.itemListStyle=(0,m5.setPosition)(-(o+2)*t.centerSlidePercentage-(100-t.centerSlidePercentage)/2,t.axis):r.itemListStyle=(0,m5.setPosition)(-(o+2)*100,t.axis):s>o&&(r.itemListStyle=(0,m5.setPosition)(0,t.axis)),r;var n=(0,m5.getPosition)(i,t),c=(0,Ez.default)(n,"%",t.axis),C=t.transitionTime+"ms";return r.itemListStyle={WebkitTransform:c,msTransform:c,OTransform:c,transform:c},l.swiping||(r.itemListStyle=q9(q9({},r.itemListStyle),{},{WebkitTransitionDuration:C,MozTransitionDuration:C,OTransitionDuration:C,transitionDuration:C,msTransitionDuration:C})),r};h5.slideAnimationHandler=zz;var yz=function(t,l,r,i){var s={},o=l.axis==="horizontal",a=au.Children.count(l.children),n=0,c=(0,m5.getPosition)(r.selectedItem,l),C=l.infiniteLoop?(0,m5.getPosition)(a-1,l)-100:(0,m5.getPosition)(a-1,l),m=o?t.x:t.y,h=m;c===n&&m>0&&(h=0),c===C&&m<0&&(h=0);var u=c+100/(r.itemSize/h),d=Math.abs(m)>l.swipeScrollTolerance;return l.infiniteLoop&&d&&(r.selectedItem===0&&u>-100?u-=a*100:r.selectedItem===a-1&&u<-a*100&&(u+=a*100)),(!l.preventMovementUntilSwipeScrollTolerance||d||r.swipeMovementStarted)&&(r.swipeMovementStarted||i({swipeMovementStarted:!0}),s.itemListStyle=(0,m5.setPosition)(u,l.axis)),d&&!r.cancelClick&&i({cancelClick:!0}),s};h5.slideSwipeAnimationHandler=yz;var Bz=function(t,l){var r=(0,m5.getPosition)(l.selectedItem,t),i=(0,m5.setPosition)(r,t.axis);return{itemListStyle:i}};h5.slideStopSwipingHandler=Bz;var Sz=function(t,l){var r=t.transitionTime+"ms",i="ease-in-out",s={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:i,msTransitionTimingFunction:i,MozTransitionTimingFunction:i,WebkitTransitionTimingFunction:i,OTransitionTimingFunction:i};return l.swiping||(s=q9(q9({},s),{},{WebkitTransitionDuration:r,MozTransitionDuration:r,OTransitionDuration:r,transitionDuration:r,msTransitionDuration:r})),{slideStyle:s,selectedStyle:q9(q9({},s),{},{opacity:1,position:"relative"}),prevStyle:q9({},s)}};h5.fadeAnimationHandler=Sz});var hu=R(X6=>{"use strict";Object.defineProperty(X6,"__esModule",{value:!0});X6.default=void 0;var B2=bz(K1()),Fz=pe(ki()),S5=pe(bi()),kz=pe(Ii()),q6=pe(su()),j6=pe(_i()),Ve=Oi(),G6=nu();function pe(e){return e&&e.__esModule?e:{default:e}}function mu(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return mu=function(){return e},e}function bz(e){if(e&&e.__esModule)return e;if(e===null||ve(e)!=="object"&&typeof e!="function")return{default:e};var t=mu();if(t&&t.has(e))return t.get(e);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var s=r?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(l,i,s):l[i]=e[i]}return l.default=e,t&&t.set(e,l),l}function ve(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ve=function(l){return typeof l}:ve=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},ve(e)}function Ai(){return Ai=Object.assign||function(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:1;i.moveTo(i.state.selectedItem-(typeof o=="number"?o:1))}),c2(h2(i),"increment",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;i.moveTo(i.state.selectedItem+(typeof o=="number"?o:1))}),c2(h2(i),"moveTo",function(o){if(typeof o=="number"){var a=B2.Children.count(i.props.children)-1;o<0&&(o=i.props.infiniteLoop?a:0),o>a&&(o=i.props.infiniteLoop?0:a),i.selectItem({selectedItem:o}),i.state.autoPlay&&i.state.isMouseEntered===!1&&i.resetAutoPlay()}}),c2(h2(i),"onClickNext",function(){i.increment(1)}),c2(h2(i),"onClickPrev",function(){i.decrement(1)}),c2(h2(i),"onSwipeForward",function(){i.increment(1),i.props.emulateTouch&&i.setState({cancelClick:!0})}),c2(h2(i),"onSwipeBackwards",function(){i.decrement(1),i.props.emulateTouch&&i.setState({cancelClick:!0})}),c2(h2(i),"changeItem",function(o){return function(a){(!(0,Ve.isKeyboardEvent)(a)||a.key==="Enter")&&i.moveTo(o)}}),c2(h2(i),"selectItem",function(o){i.setState(Y4({previousItem:i.state.selectedItem},o),function(){i.setState(i.animationHandler(i.props,i.state))}),i.handleOnChange(o.selectedItem,B2.Children.toArray(i.props.children)[o.selectedItem])}),c2(h2(i),"getInitialImage",function(){var o=i.props.selectedItem,a=i.itemsRef&&i.itemsRef[o],n=a&&a.getElementsByTagName("img")||[];return n[0]}),c2(h2(i),"getVariableItemHeight",function(o){var a=i.itemsRef&&i.itemsRef[o];if(i.state.hasMount&&a&&a.children.length){var n=a.children[0].getElementsByTagName("img")||[];if(n.length>0){var c=n[0];if(!c.complete){var C=function u(){i.forceUpdate(),c.removeEventListener("load",u)};c.addEventListener("load",C)}}var m=n[0]||a.children[0],h=m.clientHeight;return h>0?h:null}return null});var s={initialized:!1,previousItem:r.selectedItem,selectedItem:r.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:r.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return i.animationHandler=typeof r.animationHandler=="function"&&r.animationHandler||r.animationHandler==="fade"&&G6.fadeAnimationHandler||G6.slideAnimationHandler,i.state=Y4(Y4({},s),i.animationHandler(r,s)),i}return Pz(l,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(i,s){!i.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!i.autoFocus&&this.props.autoFocus&&this.forceFocus(),s.swiping&&!this.state.swiping&&this.setState(Y4({},this.props.stopSwipingHandler(this.props,this.state))),(i.selectedItem!==this.props.selectedItem||i.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),i.autoPlay!==this.props.autoPlay&&(this.props.autoPlay?this.setupAutoPlay():this.destroyAutoPlay(),this.setState({autoPlay:this.props.autoPlay}))}},{key:"componentWillUnmount",value:function(){this.destroyCarousel()}},{key:"setupCarousel",value:function(){var i=this;this.bindEvents(),this.state.autoPlay&&B2.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},function(){var s=i.getInitialImage();s&&!s.complete?s.addEventListener("load",i.setMountState):i.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var i=this.carouselWrapperRef;this.props.stopOnHover&&i&&(i.addEventListener("mouseenter",this.stopOnHover),i.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var i=this.carouselWrapperRef;this.props.stopOnHover&&i&&(i.removeEventListener("mouseenter",this.stopOnHover),i.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,j6.default)().addEventListener("resize",this.updateSizes),(0,j6.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,q6.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,j6.default)().removeEventListener("resize",this.updateSizes),(0,j6.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var i=this.getInitialImage();i&&i.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,q6.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var i;(i=this.carouselWrapperRef)===null||i===void 0||i.focus()}},{key:"renderItems",value:function(i){var s=this;return this.props.children?B2.Children.map(this.props.children,function(o,a){var n=a===s.state.selectedItem,c=a===s.state.previousItem,C=n&&s.state.selectedStyle||c&&s.state.prevStyle||s.state.slideStyle||{};s.props.centerMode&&s.props.axis==="horizontal"&&(C=Y4(Y4({},C),{},{minWidth:s.props.centerSlidePercentage+"%"})),s.state.swiping&&s.state.swipeMovementStarted&&(C=Y4(Y4({},C),{},{pointerEvents:"none"}));var m={ref:function(u){return s.setItemsRef(u,a)},key:"itemKey"+a+(i?"clone":""),className:S5.default.ITEM(!0,a===s.state.selectedItem,a===s.state.previousItem),onClick:s.handleClickItem.bind(s,a,o),style:C};return B2.default.createElement("li",m,s.props.renderItem(o,{isSelected:a===s.state.selectedItem,isPrevious:a===s.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var i=this,s=this.props,o=s.showIndicators,a=s.labels,n=s.renderIndicator,c=s.children;return o?B2.default.createElement("ul",{className:"control-dots"},B2.Children.map(c,function(C,m){return n&&n(i.changeItem(m),m===i.state.selectedItem,m,a.item)})):null}},{key:"renderStatus",value:function(){return this.props.showStatus?B2.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,B2.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return!this.props.showThumbs||!this.props.children||B2.Children.count(this.props.children)===0?null:B2.default.createElement(kz.default,{ref:this.setThumbsRef,onSelectItem:this.handleClickThumb,selectedItem:this.state.selectedItem,transitionTime:this.props.transitionTime,thumbWidth:this.props.thumbWidth,labels:this.props.labels,emulateTouch:this.props.emulateTouch},this.props.renderThumbs(this.props.children))}},{key:"render",value:function(){var i=this;if(!this.props.children||B2.Children.count(this.props.children)===0)return null;var s=this.props.swipeable&&B2.Children.count(this.props.children)>1,o=this.props.axis==="horizontal",a=this.props.showArrows&&B2.Children.count(this.props.children)>1,n=a&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,c=a&&(this.state.selectedItem{"use strict"});var uu=R(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});Object.defineProperty(fe,"Carousel",{enumerable:!0,get:function(){return Az.default}});Object.defineProperty(fe,"CarouselProps",{enumerable:!0,get:function(){return Wz.CarouselProps}});Object.defineProperty(fe,"Thumbs",{enumerable:!0,get:function(){return $z.default}});var Az=gu(hu()),Wz=wu(),$z=gu(Ii());function gu(e){return e&&e.__esModule?e:{default:e}}});var fH=y1(K1()),xH=y1(sc());var e1=y1(K1());var T=y1(K1(),1),Ne=y1(D7(),1),Ku=y1(sm(),1),Yi=y1(pm(),1),K9=y1(hi(),1),Xu=y1(z6(),1),c0=y1(K1(),1),Yu=y1(L6(),1),e3=y1(K1(),1),Ju=y1(K1(),1),id=y1(ch(),1),w5=y1(K1(),1),W1=y1(K1(),1),u0=y1(K1(),1),nd=y1(D7(),1),I2=y1(K1(),1),t1=y1(K1(),1),cd=y1(mh(),1),r0=y1(K1(),1),hd=y1(z6(),1),vd=y1(K1(),1);var W7=new Map,$7=new Map,Hi=new Map;function hh(){W7.clear(),Hi.clear(),$7.clear()}function IM(e,t,l,r,i){var s,o,a;let n=0,c={};for(let m of e)n+=(s=l.get(m))!=null?s:i,c[m]=((o=c[m])!=null?o:0)+1;let C=t-n;for(let m of Object.keys(c)){let h=c[m],u=(a=l.get(m))!=null?a:i,d=u*h/n,H=C*d*r/h,f=u+H;l.set(m,f)}}function OM(e,t){var l;let r=new Map,i=0;for(let c of"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890,.-+=?"){let C=e.measureText(c).width;r.set(c,C),i+=C}let s=i/r.size,o=3,a=(t/s+o)/(o+1),n=r.keys();for(let c of n)r.set(c,((l=r.get(c))!=null?l:s)*a);return r}function ge(e,t,l,r){var i,s;let o=$7.get(l);if(r&&o!==void 0&&o.count>2e4){let c=Hi.get(l);if(c===void 0&&(c=OM(e,o.size),Hi.set(l,c)),o.count>5e5){let m=0;for(let h of t)m+=(i=c.get(h))!=null?i:o.size;return m*1.01}let C=e.measureText(t);return IM(t,C.width,c,Math.max(.05,1-o.count/2e5),o.size),$7.set(l,{count:o.count+t.length,size:o.size}),C.width}let a=e.measureText(t),n=a.width/t.length;if(((s=o==null?void 0:o.count)!=null?s:0)>2e4)return a.width;if(o===void 0)$7.set(l,{count:t.length,size:n});else{let c=n-o.size,C=t.length/(o.count+t.length),m=o.size+c*C;$7.set(l,{count:o.count+t.length,size:m})}return a.width}function AM(e,t,l,r,i,s,o,a){if(t.length<=1)return t.length;if(il;){let m=C!==void 0?0:t.lastIndexOf(" ",n-1);m>0?n=m:n--,c=ge(e,t.slice(0,Math.max(0,n)),r,o)}if(t[n]!==" "){let m=0;if(C===void 0)m=t.lastIndexOf(" ",n);else for(let h of C){if(h>n)break;m=h}m>0&&(n=m)}return n}function wh(e,t,l,r,i,s){let o=`${t}_${l}_${r}px`,a=W7.get(o);if(a!==void 0)return a;if(r<=0)return[];let n=[],c=t.split(` -`),C=$7.get(l),m=C===void 0?t.length:r/C.size*1.5,h=i&&C!==void 0&&C.count>2e4;for(let u of c){let d=ge(e,u.slice(0,Math.max(0,m)),l,h),H=Math.min(u.length,m);if(d<=r)n.push(u);else{for(;d>r;){let f=AM(e,u,r,l,d,H,h,s),w=u.slice(0,Math.max(0,f));u=u.slice(w.length),n.push(w),d=ge(e,u.slice(0,Math.max(0,m)),l,h),H=Math.min(u.length,m)}d>0&&n.push(u)}}return n=n.map((u,d)=>d===0?u.trimEnd():u.trim()),W7.set(o,n),W7.size>500&&W7.delete(W7.keys().next().value),n}var ts=y1(D7(),1),Md=y1(hi(),1),Zd=y1($g(),1),rs=y1(D7(),1),X9=y1(K1(),1),w2=y1(K1(),1),t3=y1(K1(),1),kd=y1(D7(),1),Ct=y1(K1(),1),c4=y1(K1(),1),mt=y1(K1(),1),ss=y1(K1(),1),_d=y1(K1(),1),os=y1(K1(),1),Td=y1(K1(),1),ht=y1(K1(),1),Dd=y1(K1(),1),ze=y1(K1(),1),Id=y1(K1(),1),G9=y1(K1(),1),Od=y1(uu(),1),Ad=y1(K1(),1),z0=y1(K1(),1),as=y1(K1(),1);function fu(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}var K7=fu();function Uz(e){K7=e}var qz=/[&<>"']/,jz=/[&<>"']/g,Gz=/[<>"']|&(?!#?\w+;)/,Kz=/[<>"']|&(?!#?\w+;)/g,Xz={"&":"&","<":"<",">":">",'"':""","'":"'"},du=e=>Xz[e];function R0(e,t){if(t){if(qz.test(e))return e.replace(jz,du)}else if(Gz.test(e))return e.replace(Kz,du);return e}var Yz=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function xu(e){return e.replace(Yz,(t,l)=>(l=l.toLowerCase(),l==="colon"?":":l.charAt(0)==="#"?l.charAt(1)==="x"?String.fromCharCode(parseInt(l.substring(2),16)):String.fromCharCode(+l.substring(1)):""))}var Qz=/(^|[^\[])\^/g;function _2(e,t){e=typeof e=="string"?e:e.source,t=t||"";let l={replace:(r,i)=>(i=i.source||i,i=i.replace(Qz,"$1"),e=e.replace(r,i),l),getRegex:()=>new RegExp(e,t)};return l}var Jz=/[^\w:]/g,ey=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Hu(e,t,l){if(e){let r;try{r=decodeURIComponent(xu(l)).replace(Jz,"").toLowerCase()}catch(i){return null}if(r.indexOf("javascript:")===0||r.indexOf("vbscript:")===0||r.indexOf("data:")===0)return null}t&&!ey.test(l)&&(l=iy(t,l));try{l=encodeURI(l).replace(/%25/g,"%")}catch(r){return null}return l}var Y6={},ty=/^[^:]+:\/*[^/]*$/,ly=/^([^:]+:)[\s\S]*$/,ry=/^([^:]+:\/*[^/]*)[\s\S]*$/;function iy(e,t){Y6[" "+e]||(ty.test(e)?Y6[" "+e]=e+"/":Y6[" "+e]=Q6(e,"/",!0)),e=Y6[" "+e];let l=e.indexOf(":")===-1;return t.substring(0,2)==="//"?l?t:e.replace(ly,"$1")+t:t.charAt(0)==="/"?l?t:e.replace(ry,"$1")+t:e+t}var J6={exec:function(){}};function Q4(e){let t=1,l,r;for(;t{let n=!1,c=o;for(;--c>=0&&a[c]==="\\";)n=!n;return n?"|":" |"}),r=l.split(/ \|/),i=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),r.length>t)r.splice(t);else for(;r.length1;)t&1&&(l+=e),t>>=1,e+=e;return l+e}function vu(e,t,l,r){let i=t.href,s=t.title?R0(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){r.state.inLink=!0;let a={type:"link",raw:l,href:i,title:s,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,a}return{type:"image",raw:l,href:i,title:s,text:R0(o)}}function oy(e,t){let l=e.match(/^(\s+)(?:```)/);if(l===null)return t;let r=l[1];return t.split(` -`).map(i=>{let s=i.match(/^\s+/);if(s===null)return i;let[o]=s;return o.length>=r.length?i.slice(r.length):i}).join(` -`)}var xe=class{constructor(t){this.options=t||K7}space(t){let l=this.rules.block.newline.exec(t);if(l&&l[0].length>0)return{type:"space",raw:l[0]}}code(t){let l=this.rules.block.code.exec(t);if(l){let r=l[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:l[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Q6(r,` -`)}}}fences(t){let l=this.rules.block.fences.exec(t);if(l){let r=l[0],i=oy(r,l[3]||"");return{type:"code",raw:r,lang:l[2]?l[2].trim().replace(this.rules.inline._escapes,"$1"):l[2],text:i}}}heading(t){let l=this.rules.block.heading.exec(t);if(l){let r=l[2].trim();if(/#$/.test(r)){let i=Q6(r,"#");(this.options.pedantic||!i||/ $/.test(i))&&(r=i.trim())}return{type:"heading",raw:l[0],depth:l[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){let l=this.rules.block.hr.exec(t);if(l)return{type:"hr",raw:l[0]}}blockquote(t){let l=this.rules.block.blockquote.exec(t);if(l){let r=l[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:l[0],tokens:this.lexer.blockTokens(r,[]),text:r}}}list(t){let l=this.rules.block.list.exec(t);if(l){let r,i,s,o,a,n,c,C,m,h,u,d,H=l[1].trim(),f=H.length>1,w={type:"list",raw:"",ordered:f,start:f?+H.slice(0,-1):"",loose:!1,items:[]};H=f?`\\d{1,9}\\${H.slice(-1)}`:`\\${H}`,this.options.pedantic&&(H=f?H:"[*+-]");let g=new RegExp(`^( {0,3}${H})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;t&&(d=!1,!(!(l=g.exec(t))||this.rules.block.hr.test(t)));){if(r=l[0],t=t.substring(r.length),C=l[2].split(` -`,1)[0],m=t.split(` -`,1)[0],this.options.pedantic?(o=2,u=C.trimLeft()):(o=l[2].search(/[^ ]/),o=o>4?1:o,u=C.slice(o),o+=l[1].length),n=!1,!C&&/^ *$/.test(m)&&(r+=m+` -`,t=t.substring(m.length+1),d=!0),!d){let v=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))`),M=new RegExp(`^ {0,${Math.min(3,o-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),E=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:\`\`\`|~~~)`),p=new RegExp(`^ {0,${Math.min(3,o-1)}}#`);for(;t&&(h=t.split(` -`,1)[0],C=h,this.options.pedantic&&(C=C.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(E.test(C)||p.test(C)||v.test(C)||M.test(t)));){if(C.search(/[^ ]/)>=o||!C.trim())u+=` -`+C.slice(o);else if(!n)u+=` -`+C;else break;!n&&!C.trim()&&(n=!0),r+=h+` -`,t=t.substring(h.length+1)}}w.loose||(c?w.loose=!0:/\n *\n *$/.test(r)&&(c=!0)),this.options.gfm&&(i=/^\[[ xX]\] /.exec(u),i&&(s=i[0]!=="[ ] ",u=u.replace(/^\[[ xX]\] +/,""))),w.items.push({type:"list_item",raw:r,task:!!i,checked:s,loose:!1,text:u}),w.raw+=r}w.items[w.items.length-1].raw=r.trimRight(),w.items[w.items.length-1].text=u.trimRight(),w.raw=w.raw.trimRight();let L=w.items.length;for(a=0;aE.type==="space"),M=v.every(E=>{let p=E.raw.split(""),x=0;for(let Z of p)if(Z===` -`&&(x+=1),x>1)return!0;return!1});!w.loose&&v.length&&M&&(w.loose=!0,w.items[a].loose=!0)}return w}}html(t){let l=this.rules.block.html.exec(t);if(l){let r={type:"html",raw:l[0],pre:!this.options.sanitizer&&(l[1]==="pre"||l[1]==="script"||l[1]==="style"),text:l[0]};if(this.options.sanitize){let i=this.options.sanitizer?this.options.sanitizer(l[0]):R0(l[0]);r.type="paragraph",r.text=i,r.tokens=this.lexer.inline(i)}return r}}def(t){let l=this.rules.block.def.exec(t);if(l)return l[3]&&(l[3]=l[3].substring(1,l[3].length-1)),{type:"def",tag:l[1].toLowerCase().replace(/\s+/g," "),raw:l[0],href:l[2]?l[2].replace(this.rules.inline._escapes,"$1"):l[2],title:l[3]?l[3].replace(this.rules.inline._escapes,"$1"):l[3]}}table(t){let l=this.rules.block.table.exec(t);if(l){let r={type:"table",header:Lu(l[1]).map(i=>({text:i})),align:l[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:l[3]&&l[3].trim()?l[3].replace(/\n[ \t]*$/,"").split(` -`):[]};if(r.header.length===r.align.length){r.raw=l[0];let i=r.align.length,s,o,a,n;for(s=0;s({text:c}));for(i=r.header.length,o=0;o/i.test(l[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(l[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(l[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:l[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(l[0]):R0(l[0]):l[0]}}link(t){let l=this.rules.inline.link.exec(t);if(l){let r=l[2].trim();if(!this.options.pedantic&&/^$/.test(r))return;let o=Q6(r.slice(0,-1),"\\");if((r.length-o.length)%2===0)return}else{let o=sy(l[2],"()");if(o>-1){let n=(l[0].indexOf("!")===0?5:4)+l[1].length+o;l[2]=l[2].substring(0,o),l[0]=l[0].substring(0,n).trim(),l[3]=""}}let i=l[2],s="";if(this.options.pedantic){let o=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);o&&(i=o[1],s=o[3])}else s=l[3]?l[3].slice(1,-1):"";return i=i.trim(),/^$/.test(r)?i=i.slice(1):i=i.slice(1,-1)),vu(l,{href:i&&i.replace(this.rules.inline._escapes,"$1"),title:s&&s.replace(this.rules.inline._escapes,"$1")},l[0],this.lexer)}}reflink(t,l){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){let i=(r[2]||r[1]).replace(/\s+/g," ");if(i=l[i.toLowerCase()],!i||!i.href){let s=r[0].charAt(0);return{type:"text",raw:s,text:s}}return vu(r,i,r[0],this.lexer)}}emStrong(t,l,r=""){let i=this.rules.inline.emStrong.lDelim.exec(t);if(!i||i[3]&&r.match(/[\p{L}\p{N}]/u))return;let s=i[1]||i[2]||"";if(!s||s&&(r===""||this.rules.inline.punctuation.exec(r))){let o=i[0].length-1,a,n,c=o,C=0,m=i[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(m.lastIndex=0,l=l.slice(-1*t.length+o);(i=m.exec(l))!=null;){if(a=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!a)continue;if(n=a.length,i[3]||i[4]){c+=n;continue}else if((i[5]||i[6])&&o%3&&!((o+n)%3)){C+=n;continue}if(c-=n,c>0)continue;n=Math.min(n,n+c+C);let h=t.slice(0,o+i.index+(i[0].length-a.length)+n);if(Math.min(o,n)%2){let d=h.slice(1,-1);return{type:"em",raw:h,text:d,tokens:this.lexer.inlineTokens(d)}}let u=h.slice(2,-2);return{type:"strong",raw:h,text:u,tokens:this.lexer.inlineTokens(u)}}}}codespan(t){let l=this.rules.inline.code.exec(t);if(l){let r=l[2].replace(/\n/g," "),i=/[^ ]/.test(r),s=/^ /.test(r)&&/ $/.test(r);return i&&s&&(r=r.substring(1,r.length-1)),r=R0(r,!0),{type:"codespan",raw:l[0],text:r}}}br(t){let l=this.rules.inline.br.exec(t);if(l)return{type:"br",raw:l[0]}}del(t){let l=this.rules.inline.del.exec(t);if(l)return{type:"del",raw:l[0],text:l[2],tokens:this.lexer.inlineTokens(l[2])}}autolink(t,l){let r=this.rules.inline.autolink.exec(t);if(r){let i,s;return r[2]==="@"?(i=R0(this.options.mangle?l(r[1]):r[1]),s="mailto:"+i):(i=R0(r[1]),s=i),{type:"link",raw:r[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(t,l){let r;if(r=this.rules.inline.url.exec(t)){let i,s;if(r[2]==="@")i=R0(this.options.mangle?l(r[0]):r[0]),s="mailto:"+i;else{let o;do o=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0];while(o!==r[0]);i=R0(r[0]),r[1]==="www."?s="http://"+i:s=i}return{type:"link",raw:r[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(t,l){let r=this.rules.inline.text.exec(t);if(r){let i;return this.lexer.state.inRawBlock?i=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):R0(r[0]):r[0]:i=R0(this.options.smartypants?l(r[0]):r[0]),{type:"text",raw:r[0],text:i}}}},P1={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:J6,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};P1._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;P1._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;P1.def=_2(P1.def).replace("label",P1._label).replace("title",P1._title).getRegex();P1.bullet=/(?:[*+-]|\d{1,9}[.)])/;P1.listItemStart=_2(/^( *)(bull) */).replace("bull",P1.bullet).getRegex();P1.list=_2(P1.list).replace(/bull/g,P1.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+P1.def.source+")").getRegex();P1._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";P1._comment=/|$)/;P1.html=_2(P1.html,"i").replace("comment",P1._comment).replace("tag",P1._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();P1.paragraph=_2(P1._paragraph).replace("hr",P1.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",P1._tag).getRegex();P1.blockquote=_2(P1.blockquote).replace("paragraph",P1.paragraph).getRegex();P1.normal=Q4({},P1);P1.gfm=Q4({},P1.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"});P1.gfm.table=_2(P1.gfm.table).replace("hr",P1.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",P1._tag).getRegex();P1.gfm.paragraph=_2(P1._paragraph).replace("hr",P1.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",P1.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",P1._tag).getRegex();P1.pedantic=Q4({},P1.normal,{html:_2(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",P1._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:J6,paragraph:_2(P1.normal._paragraph).replace("hr",P1.hr).replace("heading",` *#{1,6} *[^ -]`).replace("lheading",P1.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var v1={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:J6,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:J6,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~";v1.punctuation=_2(v1.punctuation).replace(/punctuation/g,v1._punctuation).getRegex();v1.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;v1.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g;v1._comment=_2(P1._comment).replace("(?:-->|$)","-->").getRegex();v1.emStrong.lDelim=_2(v1.emStrong.lDelim).replace(/punct/g,v1._punctuation).getRegex();v1.emStrong.rDelimAst=_2(v1.emStrong.rDelimAst,"g").replace(/punct/g,v1._punctuation).getRegex();v1.emStrong.rDelimUnd=_2(v1.emStrong.rDelimUnd,"g").replace(/punct/g,v1._punctuation).getRegex();v1._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;v1._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;v1._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;v1.autolink=_2(v1.autolink).replace("scheme",v1._scheme).replace("email",v1._email).getRegex();v1._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;v1.tag=_2(v1.tag).replace("comment",v1._comment).replace("attribute",v1._attribute).getRegex();v1._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;v1._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;v1._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;v1.link=_2(v1.link).replace("label",v1._label).replace("href",v1._href).replace("title",v1._title).getRegex();v1.reflink=_2(v1.reflink).replace("label",v1._label).replace("ref",P1._label).getRegex();v1.nolink=_2(v1.nolink).replace("ref",P1._label).getRegex();v1.reflinkSearch=_2(v1.reflinkSearch,"g").replace("reflink",v1.reflink).replace("nolink",v1.nolink).getRegex();v1.normal=Q4({},v1);v1.pedantic=Q4({},v1.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:_2(/^!?\[(label)\]\((.*?)\)/).replace("label",v1._label).getRegex(),reflink:_2(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",v1._label).getRegex()});v1.gfm=Q4({},v1.normal,{escape:_2(v1.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\.5&&(r="x"+r.toString(16)),t+="&#"+r+";";return t}var h9=class e{constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||K7,this.options.tokenizer=this.options.tokenizer||new xe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let l={block:P1.normal,inline:v1.normal};this.options.pedantic?(l.block=P1.pedantic,l.inline=v1.pedantic):this.options.gfm&&(l.block=P1.gfm,this.options.breaks?l.inline=v1.breaks:l.inline=v1.gfm),this.tokenizer.rules=l}static get rules(){return{block:P1,inline:v1}}static lex(t,l){return new e(l).lex(t)}static lexInline(t,l){return new e(l).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,` -`),this.blockTokens(t,this.tokens);let l;for(;l=this.inlineQueue.shift();)this.inlineTokens(l.src,l.tokens);return this.tokens}blockTokens(t,l=[]){this.options.pedantic?t=t.replace(/\t/g," ").replace(/^ +$/gm,""):t=t.replace(/^( *)(\t+)/gm,(a,n,c)=>n+" ".repeat(c.length));let r,i,s,o;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>(r=a.call({lexer:this},t,l))?(t=t.substring(r.raw.length),l.push(r),!0):!1))){if(r=this.tokenizer.space(t)){t=t.substring(r.raw.length),r.raw.length===1&&l.length>0?l[l.length-1].raw+=` -`:l.push(r);continue}if(r=this.tokenizer.code(t)){t=t.substring(r.raw.length),i=l[l.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=` -`+r.raw,i.text+=` -`+r.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text):l.push(r);continue}if(r=this.tokenizer.fences(t)){t=t.substring(r.raw.length),l.push(r);continue}if(r=this.tokenizer.heading(t)){t=t.substring(r.raw.length),l.push(r);continue}if(r=this.tokenizer.hr(t)){t=t.substring(r.raw.length),l.push(r);continue}if(r=this.tokenizer.blockquote(t)){t=t.substring(r.raw.length),l.push(r);continue}if(r=this.tokenizer.list(t)){t=t.substring(r.raw.length),l.push(r);continue}if(r=this.tokenizer.html(t)){t=t.substring(r.raw.length),l.push(r);continue}if(r=this.tokenizer.def(t)){t=t.substring(r.raw.length),i=l[l.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=` -`+r.raw,i.text+=` -`+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});continue}if(r=this.tokenizer.table(t)){t=t.substring(r.raw.length),l.push(r);continue}if(r=this.tokenizer.lheading(t)){t=t.substring(r.raw.length),l.push(r);continue}if(s=t,this.options.extensions&&this.options.extensions.startBlock){let a=1/0,n=t.slice(1),c;this.options.extensions.startBlock.forEach(function(C){c=C.call({lexer:this},n),typeof c=="number"&&c>=0&&(a=Math.min(a,c))}),a<1/0&&a>=0&&(s=t.substring(0,a+1))}if(this.state.top&&(r=this.tokenizer.paragraph(s))){i=l[l.length-1],o&&i.type==="paragraph"?(i.raw+=` -`+r.raw,i.text+=` -`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):l.push(r),o=s.length!==t.length,t=t.substring(r.raw.length);continue}if(r=this.tokenizer.text(t)){t=t.substring(r.raw.length),i=l[l.length-1],i&&i.type==="text"?(i.raw+=` -`+r.raw,i.text+=` -`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):l.push(r);continue}if(t){let a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,l}inline(t,l=[]){return this.inlineQueue.push({src:t,tokens:l}),l}inlineTokens(t,l=[]){let r,i,s,o=t,a,n,c;if(this.tokens.links){let C=Object.keys(this.tokens.links);if(C.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(o))!=null;)C.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,a.index)+"["+Vu("a",a[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.blockSkip.exec(o))!=null;)o=o.slice(0,a.index)+"["+Vu("a",a[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(a=this.tokenizer.rules.inline.escapedEmSt.exec(o))!=null;)o=o.slice(0,a.index+a[0].length-2)+"++"+o.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;t;)if(n||(c=""),n=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(C=>(r=C.call({lexer:this},t,l))?(t=t.substring(r.raw.length),l.push(r),!0):!1))){if(r=this.tokenizer.escape(t)){t=t.substring(r.raw.length),l.push(r);continue}if(r=this.tokenizer.tag(t)){t=t.substring(r.raw.length),i=l[l.length-1],i&&r.type==="text"&&i.type==="text"?(i.raw+=r.raw,i.text+=r.text):l.push(r);continue}if(r=this.tokenizer.link(t)){t=t.substring(r.raw.length),l.push(r);continue}if(r=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(r.raw.length),i=l[l.length-1],i&&r.type==="text"&&i.type==="text"?(i.raw+=r.raw,i.text+=r.text):l.push(r);continue}if(r=this.tokenizer.emStrong(t,o,c)){t=t.substring(r.raw.length),l.push(r);continue}if(r=this.tokenizer.codespan(t)){t=t.substring(r.raw.length),l.push(r);continue}if(r=this.tokenizer.br(t)){t=t.substring(r.raw.length),l.push(r);continue}if(r=this.tokenizer.del(t)){t=t.substring(r.raw.length),l.push(r);continue}if(r=this.tokenizer.autolink(t,pu)){t=t.substring(r.raw.length),l.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(t,pu))){t=t.substring(r.raw.length),l.push(r);continue}if(s=t,this.options.extensions&&this.options.extensions.startInline){let C=1/0,m=t.slice(1),h;this.options.extensions.startInline.forEach(function(u){h=u.call({lexer:this},m),typeof h=="number"&&h>=0&&(C=Math.min(C,h))}),C<1/0&&C>=0&&(s=t.substring(0,C+1))}if(r=this.tokenizer.inlineText(s,ay)){t=t.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(c=r.raw.slice(-1)),n=!0,i=l[l.length-1],i&&i.type==="text"?(i.raw+=r.raw,i.text+=r.text):l.push(r);continue}if(t){let C="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(C);break}else throw new Error(C)}}return l}},Me=class{constructor(t){this.options=t||K7}code(t,l,r){let i=(l||"").match(/\S*/)[0];if(this.options.highlight){let s=this.options.highlight(t,i);s!=null&&s!==t&&(r=!0,t=s)}return t=t.replace(/\n$/,"")+` -`,i?'
'+(r?t:R0(t,!0))+`
-`:"
"+(r?t:R0(t,!0))+`
+import{A as Ao,B as O5,C as _5,D as c1,E as a5,F as k3,G as x9,H as T3,I as W5,J as F4,K as o5,L as X6,M as f9,N as l4,O as x2,P as z0,Q as P3,R as y0,S as j6,T as C7,U as Y6,V as r4,W as Q6,a as P6,b as d0,c as l5,d as D6,e as r5,f as I5,g as So,h as s5,i as A6,j as I6,k as O6,l as ko,m as _6,n as p9,o as To,p as Po,q as M9,r as W6,s as F3,t as q6,u as $6,v as Do,w as U6,x as G6,y as K6,z as S3}from"./chunk-7E2MHSGD.js";import{a as y,b as P,c as o0,d as U,e as F1,f as c2,g as Y1,h as X2}from"./chunk-2HCNYJTW.js";var ee=U(D3=>{"use strict";var J6=P6();D3.createRoot=J6.createRoot,D3.hydrateRoot=J6.hydrateRoot;var hV});var le=U((LV,ie)=>{"use strict";var Io="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";ie.exports=Io});var oe=U((VV,ae)=>{"use strict";var Oo=le();function re(){}function se(){}se.resetWarningCache=re;ae.exports=function(){function e(l,r,s,a,o,n){if(n!==Oo){var C=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw C.name="Invariant Violation",C}}e.isRequired=e;function t(){return e}var i={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:se,resetWarningCache:re};return i.PropTypes=i,i}});var Ce=U((vV,ne)=>{ne.exports=oe()();var dV,uV});var ce=U(c7=>{(function(e,t){if(typeof define=="function"&&define.amd)define(["exports","react","prop-types"],t);else if(typeof c7!="undefined")t(c7,Y1(),Ce());else{var i={exports:{}};t(i.exports,e.react,e.propTypes),e.reactSwipe=i.exports}})(c7,function(e,t,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setHasSupportToCaptureOption=m;var l=s(t),r=s(i);function s(V){return V&&V.__esModule?V:{default:V}}var a=Object.assign||function(V){for(var u=1;u=0||Object.prototype.hasOwnProperty.call(V,p)&&(d[p]=V[p]);return d}function n(V,u){if(!(V instanceof u))throw new TypeError("Cannot call a class as a function")}var C=function(){function V(u,d){for(var p=0;p0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return g?V:V.capture}function L(V){if("touches"in V){var u=V.touches[0],d=u.pageX,p=u.pageY;return{x:d,y:p}}var Z=V.screenX,R=V.screenY;return{x:Z,y:R}}var v=function(V){h(u,V);function u(){var d;n(this,u);for(var p=arguments.length,Z=Array(p),R=0;RZ&&this.props.onSwipeRight(1,p),this.movePosition.deltaY<-Z?this.props.onSwipeUp(1,p):this.movePosition.deltaY>Z&&this.props.onSwipeDown(1,p)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(p){this.swiper=p,this.props.innerRef(p)}},{key:"render",value:function(){var p=this.props,Z=p.tagName,R=p.className,x=p.style,N=p.children,E=p.allowMouseEvents,S=p.onSwipeUp,k=p.onSwipeDown,b=p.onSwipeLeft,D=p.onSwipeRight,B=p.onSwipeStart,_=p.onSwipeMove,K=p.onSwipeEnd,Q=p.innerRef,m1=p.tolerance,g1=o(p,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return l.default.createElement(this.props.tagName,a({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:R,style:x},g1),N)}}]),u}(t.Component);v.displayName="ReactSwipe",v.propTypes={tagName:r.default.string,className:r.default.string,style:r.default.object,children:r.default.node,allowMouseEvents:r.default.bool,onSwipeUp:r.default.func,onSwipeDown:r.default.func,onSwipeLeft:r.default.func,onSwipeRight:r.default.func,onSwipeStart:r.default.func,onSwipeMove:r.default.func,onSwipeEnd:r.default.func,innerRef:r.default.func,tolerance:r.default.number.isRequired},v.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},e.default=v})});var A3=U(m7=>{(function(e,t){if(typeof define=="function"&&define.amd)define(["exports","./react-swipe"],t);else if(typeof m7!="undefined")t(m7,ce());else{var i={exports:{}};t(i.exports,e.reactSwipe),e.index=i.exports}})(m7,function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=l(t);function l(r){return r&&r.__esModule?r:{default:r}}e.default=i.default})});var me=U((xV,h7)=>{(function(){"use strict";var e={}.hasOwnProperty,t="[native code]";function i(){for(var l=[],r=0;r{"use strict";Object.defineProperty(w7,"__esModule",{value:!0});w7.default=void 0;var W4=_o(me());function _o(e){return e&&e.__esModule?e:{default:e}}function Wo(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var qo={ROOT:function(t){return(0,W4.default)(Wo({"carousel-root":!0},t||"",!!t))},CAROUSEL:function(t){return(0,W4.default)({carousel:!0,"carousel-slider":t})},WRAPPER:function(t,i){return(0,W4.default)({"thumbs-wrapper":!t,"slider-wrapper":t,"axis-horizontal":i==="horizontal","axis-vertical":i!=="horizontal"})},SLIDER:function(t,i){return(0,W4.default)({thumbs:!t,slider:t,animated:!i})},ITEM:function(t,i,l){return(0,W4.default)({thumb:!t,slide:t,selected:i,previous:l})},ARROW_PREV:function(t){return(0,W4.default)({"control-arrow control-prev":!0,"control-disabled":t})},ARROW_NEXT:function(t){return(0,W4.default)({"control-arrow control-next":!0,"control-disabled":t})},DOT:function(t){return(0,W4.default)({dot:!0,selected:t})}};w7.default=qo});var he=U(g7=>{"use strict";Object.defineProperty(g7,"__esModule",{value:!0});g7.outerWidth=void 0;var $o=function(t){var i=t.offsetWidth,l=getComputedStyle(t);return i+=parseInt(l.marginLeft)+parseInt(l.marginRight),i};g7.outerWidth=$o});var L7=U(H7=>{"use strict";Object.defineProperty(H7,"__esModule",{value:!0});H7.default=void 0;var Uo=function(t,i,l){var r=t===0?t:t+i,s=l==="horizontal"?[r,0,0]:[0,r,0],a="translate3d",o="("+s.join(",")+")";return a+o};H7.default=Uo});var O3=U(V7=>{"use strict";Object.defineProperty(V7,"__esModule",{value:!0});V7.default=void 0;var Go=function(){return window};V7.default=Go});var $3=U(p7=>{"use strict";Object.defineProperty(p7,"__esModule",{value:!0});p7.default=void 0;var g4=jo(Y1()),n5=v7(I3()),Ko=he(),we=v7(L7()),Xo=v7(A3()),d7=v7(O3());function v7(e){return e&&e.__esModule?e:{default:e}}function He(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return He=function(){return e},e}function jo(e){if(e&&e.__esModule)return e;if(e===null||Z9(e)!=="object"&&typeof e!="function")return{default:e};var t=He();if(t&&t.has(e))return t.get(e);var i={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var s=l?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(i,r,s):i[r]=e[r]}return i.default=e,t&&t.set(e,i),i}function Z9(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Z9=function(i){return typeof i}:Z9=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Z9(e)}function _3(){return _3=Object.assign||function(e){for(var t=1;t0&&(a=0),C===h&&a<0&&(a=0);var g=r.itemsWrapperRef.clientWidth,m=C+100/(g/a);return r.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(w){r.itemsListRef.style[w]=(0,we.default)(m,"%",r.props.axis)}),!0}),R0(b0(r),"slideRight",function(s){r.moveTo(r.state.firstItem-(typeof s=="number"?s:1))}),R0(b0(r),"slideLeft",function(s){r.moveTo(r.state.firstItem+(typeof s=="number"?s:1))}),R0(b0(r),"moveTo",function(s){s=s<0?0:s,s=s>=r.state.lastPosition?r.state.lastPosition:s,r.setState({firstItem:s})}),r.state={selectedItem:l.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},r}return Qo(i,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(r){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==r.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,d7.default)().addEventListener("resize",this.updateSizes),(0,d7.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,d7.default)().removeEventListener("resize",this.updateSizes),(0,d7.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(r){var s=r;return r>=this.state.lastPosition&&(s=this.state.lastPosition),r1,a=this.state.showArrows&&this.state.firstItem>0,o=this.state.showArrows&&this.state.firstItem{"use strict";Object.defineProperty(M7,"__esModule",{value:!0});M7.default=void 0;var sn=function(){return document};M7.default=sn});var U3=U(s4=>{"use strict";Object.defineProperty(s4,"__esModule",{value:!0});s4.setPosition=s4.getPosition=s4.isKeyboardEvent=s4.defaultStatusFormatter=s4.noop=void 0;var an=Y1(),on=nn(L7());function nn(e){return e&&e.__esModule?e:{default:e}}var Cn=function(){};s4.noop=Cn;var cn=function(t,i){return"".concat(t," of ").concat(i)};s4.defaultStatusFormatter=cn;var mn=function(t){return t?t.hasOwnProperty("key"):!1};s4.isKeyboardEvent=mn;var hn=function(t,i){if(i.infiniteLoop&&++t,t===0)return 0;var l=an.Children.count(i.children);if(i.centerMode&&i.axis==="horizontal"){var r=-t*i.centerSlidePercentage,s=l-1;return t&&(t!==s||i.infiniteLoop)?r+=(100-i.centerSlidePercentage)/2:t===s&&(r+=100-i.centerSlidePercentage),r}return-t*100};s4.getPosition=hn;var wn=function(t,i){var l={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(r){l[r]=(0,on.default)(t,"%",i)}),l};s4.setPosition=wn});var ue=U(f4=>{"use strict";Object.defineProperty(f4,"__esModule",{value:!0});f4.fadeAnimationHandler=f4.slideStopSwipingHandler=f4.slideSwipeAnimationHandler=f4.slideAnimationHandler=void 0;var de=Y1(),gn=Hn(L7()),x4=U3();function Hn(e){return e&&e.__esModule?e:{default:e}}function Ve(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),i.push.apply(i,l)}return i}function C5(e){for(var t=1;ta);if(o)return s<0?t.centerMode&&t.centerSlidePercentage&&t.axis==="horizontal"?l.itemListStyle=(0,x4.setPosition)(-(a+2)*t.centerSlidePercentage-(100-t.centerSlidePercentage)/2,t.axis):l.itemListStyle=(0,x4.setPosition)(-(a+2)*100,t.axis):s>a&&(l.itemListStyle=(0,x4.setPosition)(0,t.axis)),l;var n=(0,x4.getPosition)(r,t),C=(0,gn.default)(n,"%",t.axis),c=t.transitionTime+"ms";return l.itemListStyle={WebkitTransform:C,msTransform:C,OTransform:C,transform:C},i.swiping||(l.itemListStyle=C5(C5({},l.itemListStyle),{},{WebkitTransitionDuration:c,MozTransitionDuration:c,OTransitionDuration:c,transitionDuration:c,msTransitionDuration:c})),l};f4.slideAnimationHandler=Vn;var dn=function(t,i,l,r){var s={},a=i.axis==="horizontal",o=de.Children.count(i.children),n=0,C=(0,x4.getPosition)(l.selectedItem,i),c=i.infiniteLoop?(0,x4.getPosition)(o-1,i)-100:(0,x4.getPosition)(o-1,i),h=a?t.x:t.y,g=h;C===n&&h>0&&(g=0),C===c&&h<0&&(g=0);var m=C+100/(l.itemSize/g),w=Math.abs(h)>i.swipeScrollTolerance;return i.infiniteLoop&&w&&(l.selectedItem===0&&m>-100?m-=o*100:l.selectedItem===o-1&&m<-o*100&&(m+=o*100)),(!i.preventMovementUntilSwipeScrollTolerance||w||l.swipeMovementStarted)&&(l.swipeMovementStarted||r({swipeMovementStarted:!0}),s.itemListStyle=(0,x4.setPosition)(m,i.axis)),w&&!l.cancelClick&&r({cancelClick:!0}),s};f4.slideSwipeAnimationHandler=dn;var un=function(t,i){var l=(0,x4.getPosition)(i.selectedItem,t),r=(0,x4.setPosition)(l,t.axis);return{itemListStyle:r}};f4.slideStopSwipingHandler=un;var vn=function(t,i){var l=t.transitionTime+"ms",r="ease-in-out",s={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:r,msTransitionTimingFunction:r,MozTransitionTimingFunction:r,WebkitTransitionTimingFunction:r,OTransitionTimingFunction:r};return i.swiping||(s=C5(C5({},s),{},{WebkitTransitionDuration:l,MozTransitionDuration:l,OTransitionDuration:l,transitionDuration:l,msTransitionDuration:l})),{slideStyle:s,selectedStyle:C5(C5({},s),{},{opacity:1,position:"relative"}),prevStyle:C5({},s)}};f4.fadeAnimationHandler=vn});var xe=U(N7=>{"use strict";Object.defineProperty(N7,"__esModule",{value:!0});N7.default=void 0;var B2=xn(Y1()),pn=R9(A3()),S4=R9(I3()),Mn=R9($3()),x7=R9(Le()),f7=R9(O3()),E9=U3(),Z7=ue();function R9(e){return e&&e.__esModule?e:{default:e}}function Me(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Me=function(){return e},e}function xn(e){if(e&&e.__esModule)return e;if(e===null||N9(e)!=="object"&&typeof e!="function")return{default:e};var t=Me();if(t&&t.has(e))return t.get(e);var i={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var s=l?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(i,r,s):i[r]=e[r]}return i.default=e,t&&t.set(e,i),i}function N9(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?N9=function(i){return typeof i}:N9=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},N9(e)}function G3(){return G3=Object.assign||function(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:1;r.moveTo(r.state.selectedItem-(typeof a=="number"?a:1))}),h2(g2(r),"increment",function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;r.moveTo(r.state.selectedItem+(typeof a=="number"?a:1))}),h2(g2(r),"moveTo",function(a){if(typeof a=="number"){var o=B2.Children.count(r.props.children)-1;a<0&&(a=r.props.infiniteLoop?o:0),a>o&&(a=r.props.infiniteLoop?0:o),r.selectItem({selectedItem:a}),r.state.autoPlay&&r.state.isMouseEntered===!1&&r.resetAutoPlay()}}),h2(g2(r),"onClickNext",function(){r.increment(1)}),h2(g2(r),"onClickPrev",function(){r.decrement(1)}),h2(g2(r),"onSwipeForward",function(){r.increment(1),r.props.emulateTouch&&r.setState({cancelClick:!0})}),h2(g2(r),"onSwipeBackwards",function(){r.decrement(1),r.props.emulateTouch&&r.setState({cancelClick:!0})}),h2(g2(r),"changeItem",function(a){return function(o){(!(0,E9.isKeyboardEvent)(o)||o.key==="Enter")&&r.moveTo(a)}}),h2(g2(r),"selectItem",function(a){r.setState(H4({previousItem:r.state.selectedItem},a),function(){r.setState(r.animationHandler(r.props,r.state))}),r.handleOnChange(a.selectedItem,B2.Children.toArray(r.props.children)[a.selectedItem])}),h2(g2(r),"getInitialImage",function(){var a=r.props.selectedItem,o=r.itemsRef&&r.itemsRef[a],n=o&&o.getElementsByTagName("img")||[];return n[0]}),h2(g2(r),"getVariableItemHeight",function(a){var o=r.itemsRef&&r.itemsRef[a];if(r.state.hasMount&&o&&o.children.length){var n=o.children[0].getElementsByTagName("img")||[];if(n.length>0){var C=n[0];if(!C.complete){var c=function m(){r.forceUpdate(),C.removeEventListener("load",m)};C.addEventListener("load",c)}}var h=n[0]||o.children[0],g=h.clientHeight;return g>0?g:null}return null});var s={initialized:!1,previousItem:l.selectedItem,selectedItem:l.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:l.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return r.animationHandler=typeof l.animationHandler=="function"&&l.animationHandler||l.animationHandler==="fade"&&Z7.fadeAnimationHandler||Z7.slideAnimationHandler,r.state=H4(H4({},s),r.animationHandler(l,s)),r}return Zn(i,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(r,s){!r.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!r.autoFocus&&this.props.autoFocus&&this.forceFocus(),s.swiping&&!this.state.swiping&&this.setState(H4({},this.props.stopSwipingHandler(this.props,this.state))),(r.selectedItem!==this.props.selectedItem||r.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),r.autoPlay!==this.props.autoPlay&&(this.props.autoPlay?this.setupAutoPlay():this.destroyAutoPlay(),this.setState({autoPlay:this.props.autoPlay}))}},{key:"componentWillUnmount",value:function(){this.destroyCarousel()}},{key:"setupCarousel",value:function(){var r=this;this.bindEvents(),this.state.autoPlay&&B2.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},function(){var s=r.getInitialImage();s&&!s.complete?s.addEventListener("load",r.setMountState):r.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var r=this.carouselWrapperRef;this.props.stopOnHover&&r&&(r.addEventListener("mouseenter",this.stopOnHover),r.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var r=this.carouselWrapperRef;this.props.stopOnHover&&r&&(r.removeEventListener("mouseenter",this.stopOnHover),r.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,f7.default)().addEventListener("resize",this.updateSizes),(0,f7.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,x7.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,f7.default)().removeEventListener("resize",this.updateSizes),(0,f7.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var r=this.getInitialImage();r&&r.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,x7.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var r;(r=this.carouselWrapperRef)===null||r===void 0||r.focus()}},{key:"renderItems",value:function(r){var s=this;return this.props.children?B2.Children.map(this.props.children,function(a,o){var n=o===s.state.selectedItem,C=o===s.state.previousItem,c=n&&s.state.selectedStyle||C&&s.state.prevStyle||s.state.slideStyle||{};s.props.centerMode&&s.props.axis==="horizontal"&&(c=H4(H4({},c),{},{minWidth:s.props.centerSlidePercentage+"%"})),s.state.swiping&&s.state.swipeMovementStarted&&(c=H4(H4({},c),{},{pointerEvents:"none"}));var h={ref:function(m){return s.setItemsRef(m,o)},key:"itemKey"+o+(r?"clone":""),className:S4.default.ITEM(!0,o===s.state.selectedItem,o===s.state.previousItem),onClick:s.handleClickItem.bind(s,o,a),style:c};return B2.default.createElement("li",h,s.props.renderItem(a,{isSelected:o===s.state.selectedItem,isPrevious:o===s.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var r=this,s=this.props,a=s.showIndicators,o=s.labels,n=s.renderIndicator,C=s.children;return a?B2.default.createElement("ul",{className:"control-dots"},B2.Children.map(C,function(c,h){return n&&n(r.changeItem(h),h===r.state.selectedItem,h,o.item)})):null}},{key:"renderStatus",value:function(){return this.props.showStatus?B2.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,B2.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return!this.props.showThumbs||!this.props.children||B2.Children.count(this.props.children)===0?null:B2.default.createElement(Mn.default,{ref:this.setThumbsRef,onSelectItem:this.handleClickThumb,selectedItem:this.state.selectedItem,transitionTime:this.props.transitionTime,thumbWidth:this.props.thumbWidth,labels:this.props.labels,emulateTouch:this.props.emulateTouch},this.props.renderThumbs(this.props.children))}},{key:"render",value:function(){var r=this;if(!this.props.children||B2.Children.count(this.props.children)===0)return null;var s=this.props.swipeable&&B2.Children.count(this.props.children)>1,a=this.props.axis==="horizontal",o=this.props.showArrows&&B2.Children.count(this.props.children)>1,n=o&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,C=o&&(this.state.selectedItem{"use strict"});var Ee=U(B9=>{"use strict";Object.defineProperty(B9,"__esModule",{value:!0});Object.defineProperty(B9,"Carousel",{enumerable:!0,get:function(){return zn.default}});Object.defineProperty(B9,"CarouselProps",{enumerable:!0,get:function(){return yn.CarouselProps}});Object.defineProperty(B9,"Thumbs",{enumerable:!0,get:function(){return bn.default}});var zn=Ze(xe()),yn=fe(),bn=Ze($3());function Ze(e){return e&&e.__esModule?e:{default:e}}});var Re=U((TV,Ne)=>{var Fn=s5(),Sn=function(){return Fn.Date.now()};Ne.exports=Sn});var ze=U((PV,Be)=>{var kn=/\s/;function Tn(e){for(var t=e.length;t--&&kn.test(e.charAt(t)););return t}Be.exports=Tn});var be=U((DV,ye)=>{var Pn=ze(),Dn=/^\s+/;function An(e){return e&&e.slice(0,Pn(e)+1).replace(Dn,"")}ye.exports=An});var R7=U((AV,ke)=>{var In=be(),Fe=p9(),On=ko(),Se=NaN,_n=/^[-+]0x[0-9a-f]+$/i,Wn=/^0b[01]+$/i,qn=/^0o[0-7]+$/i,$n=parseInt;function Un(e){if(typeof e=="number")return e;if(On(e))return Se;if(Fe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Fe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=In(e);var i=Wn.test(e);return i||qn.test(e)?$n(e.slice(2),i?2:8):_n.test(e)?Se:+e}ke.exports=Un});var B7=U((IV,Pe)=>{var Gn=p9(),j3=Re(),Te=R7(),Kn="Expected a function",Xn=Math.max,jn=Math.min;function Yn(e,t,i){var l,r,s,a,o,n,C=0,c=!1,h=!1,g=!0;if(typeof e!="function")throw new TypeError(Kn);t=Te(t)||0,Gn(i)&&(c=!!i.leading,h="maxWait"in i,s=h?Xn(Te(i.maxWait)||0,t):s,g="trailing"in i?!!i.trailing:g);function m(R){var x=l,N=r;return l=r=void 0,C=R,a=e.apply(N,x),a}function w(R){return C=R,o=setTimeout(V,t),c?m(R):a}function L(R){var x=R-n,N=R-C,E=t-x;return h?jn(E,s-N):E}function v(R){var x=R-n,N=R-C;return n===void 0||x>=t||x<0||h&&N>=s}function V(){var R=j3();if(v(R))return u(R);o=setTimeout(V,L(R))}function u(R){return o=void 0,g&&l?m(R):(l=r=void 0,a)}function d(){o!==void 0&&clearTimeout(o),C=0,l=n=r=o=void 0}function p(){return o===void 0?a:u(j3())}function Z(){var R=j3(),x=v(R);if(l=arguments,r=this,n=R,x){if(o===void 0)return w(n);if(h)return clearTimeout(o),o=setTimeout(V,t),m(n)}return o===void 0&&(o=setTimeout(V,t)),a}return Z.cancel=d,Z.flush=p,Z}Pe.exports=Yn});var Et=U((Ed,Zt)=>{function RC(e,t,i){return e===e&&(i!==void 0&&(e=e<=i?e:i),t!==void 0&&(e=e>=t?e:t)),e}Zt.exports=RC});var A9=U((Nd,Nt)=>{var BC=Et(),s8=R7();function zC(e,t,i){return i===void 0&&(i=t,t=void 0),i!==void 0&&(i=s8(i),i=i===i?i:0),t!==void 0&&(t=s8(t),t=t===t?t:0),BC(s8(e),t,i)}Nt.exports=zC});var Bt=U((Rd,Rt)=>{var yC="__lodash_hash_undefined__";function bC(e){return this.__data__.set(e,yC),this}Rt.exports=bC});var yt=U((Bd,zt)=>{function FC(e){return this.__data__.has(e)}zt.exports=FC});var a8=U((zd,bt)=>{var SC=$6(),kC=Bt(),TC=yt();function U7(e){var t=-1,i=e==null?0:e.length;for(this.__data__=new SC;++t{function PC(e,t,i,l){for(var r=e.length,s=i+(l?1:-1);l?s--:++s{function DC(e){return e!==e}kt.exports=DC});var Dt=U((Fd,Pt)=>{function AC(e,t,i){for(var l=i-1,r=e.length;++l{var IC=St(),OC=Tt(),_C=Dt();function WC(e,t,i){return t===t?_C(e,t,i):IC(e,OC,i)}At.exports=WC});var _t=U((kd,Ot)=>{var qC=It();function $C(e,t){var i=e==null?0:e.length;return!!i&&qC(e,t,0)>-1}Ot.exports=$C});var qt=U((Td,Wt)=>{function UC(e,t,i){for(var l=-1,r=e==null?0:e.length;++l{function GC(e,t){return e.has(t)}$t.exports=GC});var n8=U((Dd,Ut)=>{var KC=M9(),XC=s5(),jC=KC(XC,"Set");Ut.exports=jC});var Kt=U((Ad,Gt)=>{function YC(){}Gt.exports=YC});var G7=U((Id,Xt)=>{function QC(e){var t=-1,i=Array(e.size);return e.forEach(function(l){i[++t]=l}),i}Xt.exports=QC});var Yt=U((Od,jt)=>{var C8=n8(),JC=Kt(),ec=G7(),tc=1/0,ic=C8&&1/ec(new C8([,-0]))[1]==tc?function(e){return new C8(e)}:JC;jt.exports=ic});var Jt=U((_d,Qt)=>{var lc=a8(),rc=_t(),sc=qt(),ac=o8(),oc=Yt(),nc=G7(),Cc=200;function cc(e,t,i){var l=-1,r=rc,s=e.length,a=!0,o=[],n=o;if(i)a=!1,r=sc;else if(s>=Cc){var C=t?null:oc(e);if(C)return nc(C);a=!1,r=ac,n=new lc}else n=t?[]:o;e:for(;++l{var mc=Jt();function hc(e){return e&&e.length?mc(e):[]}ei.exports=hc});var c8=U((qd,ii)=>{function wc(e,t){for(var i=-1,l=t.length,r=e.length;++i{var li=A6(),gc=U6(),Hc=I5(),ri=li?li.isConcatSpreadable:void 0;function Lc(e){return Hc(e)||gc(e)||!!(ri&&e&&e[ri])}si.exports=Lc});var Ci=U((Ud,ni)=>{var Vc=c8(),dc=ai();function oi(e,t,i,l,r){var s=-1,a=e.length;for(i||(i=dc),r||(r=[]);++s0&&i(o)?t>1?oi(o,t-1,i,l,r):Vc(r,o):l||(r[r.length]=o)}return r}ni.exports=oi});var mi=U((Gd,ci)=>{var uc=Ci();function vc(e){var t=e==null?0:e.length;return t?uc(e,1):[]}ci.exports=vc});var wi=U((Kd,hi)=>{var pc=Math.ceil,Mc=Math.max;function xc(e,t,i,l){for(var r=-1,s=Mc(pc((t-e)/(i||1)),0),a=Array(s);s--;)a[l?s:++r]=e,e+=i;return a}hi.exports=xc});var K7=U((Xd,gi)=>{var fc=To(),Zc=K6();function Ec(e){return e!=null&&Zc(e.length)&&!fc(e)}gi.exports=Ec});var Li=U((jd,Hi)=>{var Nc=W6(),Rc=K7(),Bc=G6(),zc=p9();function yc(e,t,i){if(!zc(i))return!1;var l=typeof t;return(l=="number"?Rc(i)&&Bc(t,i.length):l=="string"&&t in i)?Nc(i[t],e):!1}Hi.exports=yc});var ui=U((Yd,di)=>{var bc=R7(),Vi=1/0,Fc=17976931348623157e292;function Sc(e){if(!e)return e===0?e:0;if(e=bc(e),e===Vi||e===-Vi){var t=e<0?-1:1;return t*Fc}return e===e?e:0}di.exports=Sc});var pi=U((Qd,vi)=>{var kc=wi(),Tc=Li(),m8=ui();function Pc(e){return function(t,i,l){return l&&typeof l!="number"&&Tc(t,i,l)&&(i=l=void 0),t=m8(t),i===void 0?(i=t,t=0):i=m8(i),l=l===void 0?t{var Dc=pi(),Ac=Dc();Mi.exports=Ac});var bi=U((zu,yi)=>{var dm=M9(),um=function(){try{var e=dm(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();yi.exports=um});var ki=U((yu,Si)=>{var Fi=bi();function vm(e,t,i){t=="__proto__"&&Fi?Fi(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}Si.exports=vm});var Pi=U((bu,Ti)=>{function pm(e,t,i,l){for(var r=-1,s=e==null?0:e.length;++r{function Mm(e){return function(t,i,l){for(var r=-1,s=Object(t),a=l(t),o=a.length;o--;){var n=a[e?o:++r];if(i(s[n],n,s)===!1)break}return t}}Di.exports=Mm});var Oi=U((Su,Ii)=>{var xm=Ai(),fm=xm();Ii.exports=fm});var Wi=U((ku,_i)=>{function Zm(e,t){for(var i=-1,l=Array(e);++i{function Em(){return!1}qi.exports=Em});var p8=U((_9,Q5)=>{var Nm=s5(),Rm=$i(),Ki=typeof _9=="object"&&_9&&!_9.nodeType&&_9,Ui=Ki&&typeof Q5=="object"&&Q5&&!Q5.nodeType&&Q5,Bm=Ui&&Ui.exports===Ki,Gi=Bm?Nm.Buffer:void 0,zm=Gi?Gi.isBuffer:void 0,ym=zm||Rm;Q5.exports=ym});var ji=U((Pu,Xi)=>{var bm=I6(),Fm=K6(),Sm=O6(),km="[object Arguments]",Tm="[object Array]",Pm="[object Boolean]",Dm="[object Date]",Am="[object Error]",Im="[object Function]",Om="[object Map]",_m="[object Number]",Wm="[object Object]",qm="[object RegExp]",$m="[object Set]",Um="[object String]",Gm="[object WeakMap]",Km="[object ArrayBuffer]",Xm="[object DataView]",jm="[object Float32Array]",Ym="[object Float64Array]",Qm="[object Int8Array]",Jm="[object Int16Array]",eh="[object Int32Array]",th="[object Uint8Array]",ih="[object Uint8ClampedArray]",lh="[object Uint16Array]",rh="[object Uint32Array]",_2={};_2[jm]=_2[Ym]=_2[Qm]=_2[Jm]=_2[eh]=_2[th]=_2[ih]=_2[lh]=_2[rh]=!0;_2[km]=_2[Tm]=_2[Km]=_2[Pm]=_2[Xm]=_2[Dm]=_2[Am]=_2[Im]=_2[Om]=_2[_m]=_2[Wm]=_2[qm]=_2[$m]=_2[Um]=_2[Gm]=!1;function sh(e){return Sm(e)&&Fm(e.length)&&!!_2[bm(e)]}Xi.exports=sh});var Qi=U((Du,Yi)=>{function ah(e){return function(t){return e(t)}}Yi.exports=ah});var el=U((W9,J5)=>{var oh=So(),Ji=typeof W9=="object"&&W9&&!W9.nodeType&&W9,q9=Ji&&typeof J5=="object"&&J5&&!J5.nodeType&&J5,nh=q9&&q9.exports===Ji,M8=nh&&oh.process,Ch=function(){try{var e=q9&&q9.require&&q9.require("util").types;return e||M8&&M8.binding&&M8.binding("util")}catch(t){}}();J5.exports=Ch});var x8=U((Au,ll)=>{var ch=ji(),mh=Qi(),tl=el(),il=tl&&tl.isTypedArray,hh=il?mh(il):ch;ll.exports=hh});var sl=U((Iu,rl)=>{var wh=Wi(),gh=U6(),Hh=I5(),Lh=p8(),Vh=G6(),dh=x8(),uh=Object.prototype,vh=uh.hasOwnProperty;function ph(e,t){var i=Hh(e),l=!i&&gh(e),r=!i&&!l&&Lh(e),s=!i&&!l&&!r&&dh(e),a=i||l||r||s,o=a?wh(e.length,String):[],n=o.length;for(var C in e)(t||vh.call(e,C))&&!(a&&(C=="length"||r&&(C=="offset"||C=="parent")||s&&(C=="buffer"||C=="byteLength"||C=="byteOffset")||Vh(C,n)))&&o.push(C);return o}rl.exports=ph});var ol=U((Ou,al)=>{var Mh=Object.prototype;function xh(e){var t=e&&e.constructor,i=typeof t=="function"&&t.prototype||Mh;return e===i}al.exports=xh});var Cl=U((_u,nl)=>{function fh(e,t){return function(i){return e(t(i))}}nl.exports=fh});var ml=U((Wu,cl)=>{var Zh=Cl(),Eh=Zh(Object.keys,Object);cl.exports=Eh});var wl=U((qu,hl)=>{var Nh=ol(),Rh=ml(),Bh=Object.prototype,zh=Bh.hasOwnProperty;function yh(e){if(!Nh(e))return Rh(e);var t=[];for(var i in Object(e))zh.call(e,i)&&i!="constructor"&&t.push(i);return t}hl.exports=yh});var J7=U(($u,gl)=>{var bh=sl(),Fh=wl(),Sh=K7();function kh(e){return Sh(e)?bh(e):Fh(e)}gl.exports=kh});var Ll=U((Uu,Hl)=>{var Th=Oi(),Ph=J7();function Dh(e,t){return e&&Th(e,t,Ph)}Hl.exports=Dh});var dl=U((Gu,Vl)=>{var Ah=K7();function Ih(e,t){return function(i,l){if(i==null)return i;if(!Ah(i))return e(i,l);for(var r=i.length,s=t?r:-1,a=Object(i);(t?s--:++s{var Oh=Ll(),_h=dl(),Wh=_h(Oh);ul.exports=Wh});var Ml=U((Xu,pl)=>{var qh=vl();function $h(e,t,i,l){return qh(e,function(r,s,a){t(l,r,i(r),a)}),l}pl.exports=$h});var fl=U((ju,xl)=>{var Uh=F3();function Gh(){this.__data__=new Uh,this.size=0}xl.exports=Gh});var El=U((Yu,Zl)=>{function Kh(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i}Zl.exports=Kh});var Rl=U((Qu,Nl)=>{function Xh(e){return this.__data__.get(e)}Nl.exports=Xh});var zl=U((Ju,Bl)=>{function jh(e){return this.__data__.has(e)}Bl.exports=jh});var bl=U((ev,yl)=>{var Yh=F3(),Qh=q6(),Jh=$6(),ew=200;function tw(e,t){var i=this.__data__;if(i instanceof Yh){var l=i.__data__;if(!Qh||l.length{var iw=F3(),lw=fl(),rw=El(),sw=Rl(),aw=zl(),ow=bl();function e9(e){var t=this.__data__=new iw(e);this.size=t.size}e9.prototype.clear=lw;e9.prototype.delete=rw;e9.prototype.get=sw;e9.prototype.has=aw;e9.prototype.set=ow;Fl.exports=e9});var kl=U((iv,Sl)=>{function nw(e,t){for(var i=-1,l=e==null?0:e.length;++i{var Cw=a8(),cw=kl(),mw=o8(),hw=1,ww=2;function gw(e,t,i,l,r,s){var a=i&hw,o=e.length,n=t.length;if(o!=n&&!(a&&n>o))return!1;var C=s.get(e),c=s.get(t);if(C&&c)return C==t&&c==e;var h=-1,g=!0,m=i&ww?new Cw:void 0;for(s.set(e,t),s.set(t,e);++h{var Hw=s5(),Lw=Hw.Uint8Array;Pl.exports=Lw});var Il=U((sv,Al)=>{function Vw(e){var t=-1,i=Array(e.size);return e.forEach(function(l,r){i[++t]=[r,l]}),i}Al.exports=Vw});var $l=U((av,ql)=>{var Ol=A6(),_l=Dl(),dw=W6(),uw=Z8(),vw=Il(),pw=G7(),Mw=1,xw=2,fw="[object Boolean]",Zw="[object Date]",Ew="[object Error]",Nw="[object Map]",Rw="[object Number]",Bw="[object RegExp]",zw="[object Set]",yw="[object String]",bw="[object Symbol]",Fw="[object ArrayBuffer]",Sw="[object DataView]",Wl=Ol?Ol.prototype:void 0,E8=Wl?Wl.valueOf:void 0;function kw(e,t,i,l,r,s,a){switch(i){case Sw:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Fw:return!(e.byteLength!=t.byteLength||!s(new _l(e),new _l(t)));case fw:case Zw:case Rw:return dw(+e,+t);case Ew:return e.name==t.name&&e.message==t.message;case Bw:case yw:return e==t+"";case Nw:var o=vw;case zw:var n=l&Mw;if(o||(o=pw),e.size!=t.size&&!n)return!1;var C=a.get(e);if(C)return C==t;l|=xw,a.set(e,t);var c=uw(o(e),o(t),l,r,s,a);return a.delete(e),c;case bw:if(E8)return E8.call(e)==E8.call(t)}return!1}ql.exports=kw});var Gl=U((ov,Ul)=>{var Tw=c8(),Pw=I5();function Dw(e,t,i){var l=t(e);return Pw(e)?l:Tw(l,i(e))}Ul.exports=Dw});var Xl=U((nv,Kl)=>{function Aw(e,t){for(var i=-1,l=e==null?0:e.length,r=0,s=[];++i{function Iw(){return[]}jl.exports=Iw});var er=U((cv,Jl)=>{var Ow=Xl(),_w=Yl(),Ww=Object.prototype,qw=Ww.propertyIsEnumerable,Ql=Object.getOwnPropertySymbols,$w=Ql?function(e){return e==null?[]:(e=Object(e),Ow(Ql(e),function(t){return qw.call(e,t)}))}:_w;Jl.exports=$w});var ir=U((mv,tr)=>{var Uw=Gl(),Gw=er(),Kw=J7();function Xw(e){return Uw(e,Kw,Gw)}tr.exports=Xw});var sr=U((hv,rr)=>{var lr=ir(),jw=1,Yw=Object.prototype,Qw=Yw.hasOwnProperty;function Jw(e,t,i,l,r,s){var a=i&jw,o=lr(e),n=o.length,C=lr(t),c=C.length;if(n!=c&&!a)return!1;for(var h=n;h--;){var g=o[h];if(!(a?g in t:Qw.call(t,g)))return!1}var m=s.get(e),w=s.get(t);if(m&&w)return m==t&&w==e;var L=!0;s.set(e,t),s.set(t,e);for(var v=a;++h{var eg=M9(),tg=s5(),ig=eg(tg,"DataView");ar.exports=ig});var Cr=U((gv,nr)=>{var lg=M9(),rg=s5(),sg=lg(rg,"Promise");nr.exports=sg});var mr=U((Hv,cr)=>{var ag=M9(),og=s5(),ng=ag(og,"WeakMap");cr.exports=ng});var ur=U((Lv,dr)=>{var N8=or(),R8=q6(),B8=Cr(),z8=n8(),y8=mr(),Vr=I6(),t9=Po(),hr="[object Map]",Cg="[object Object]",wr="[object Promise]",gr="[object Set]",Hr="[object WeakMap]",Lr="[object DataView]",cg=t9(N8),mg=t9(R8),hg=t9(B8),wg=t9(z8),gg=t9(y8),L5=Vr;(N8&&L5(new N8(new ArrayBuffer(1)))!=Lr||R8&&L5(new R8)!=hr||B8&&L5(B8.resolve())!=wr||z8&&L5(new z8)!=gr||y8&&L5(new y8)!=Hr)&&(L5=function(e){var t=Vr(e),i=t==Cg?e.constructor:void 0,l=i?t9(i):"";if(l)switch(l){case cg:return Lr;case mg:return hr;case hg:return wr;case wg:return gr;case gg:return Hr}return t});dr.exports=L5});var Nr=U((Vv,Er)=>{var b8=f8(),Hg=Z8(),Lg=$l(),Vg=sr(),vr=ur(),pr=I5(),Mr=p8(),dg=x8(),ug=1,xr="[object Arguments]",fr="[object Array]",e3="[object Object]",vg=Object.prototype,Zr=vg.hasOwnProperty;function pg(e,t,i,l,r,s){var a=pr(e),o=pr(t),n=a?fr:vr(e),C=o?fr:vr(t);n=n==xr?e3:n,C=C==xr?e3:C;var c=n==e3,h=C==e3,g=n==C;if(g&&Mr(e)){if(!Mr(t))return!1;a=!0,c=!1}if(g&&!c)return s||(s=new b8),a||dg(e)?Hg(e,t,i,l,r,s):Lg(e,t,n,i,l,r,s);if(!(i&ug)){var m=c&&Zr.call(e,"__wrapped__"),w=h&&Zr.call(t,"__wrapped__");if(m||w){var L=m?e.value():e,v=w?t.value():t;return s||(s=new b8),r(L,v,i,l,s)}}return g?(s||(s=new b8),Vg(e,t,i,l,r,s)):!1}Er.exports=pg});var F8=U((dv,zr)=>{var Mg=Nr(),Rr=O6();function Br(e,t,i,l,r){return e===t?!0:e==null||t==null||!Rr(e)&&!Rr(t)?e!==e&&t!==t:Mg(e,t,i,l,Br,r)}zr.exports=Br});var br=U((uv,yr)=>{var xg=f8(),fg=F8(),Zg=1,Eg=2;function Ng(e,t,i,l){var r=i.length,s=r,a=!l;if(e==null)return!s;for(e=Object(e);r--;){var o=i[r];if(a&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++r{var Rg=p9();function Bg(e){return e===e&&!Rg(e)}Fr.exports=Bg});var kr=U((pv,Sr)=>{var zg=S8(),yg=J7();function bg(e){for(var t=yg(e),i=t.length;i--;){var l=t[i],r=e[l];t[i]=[l,r,zg(r)]}return t}Sr.exports=bg});var k8=U((Mv,Tr)=>{function Fg(e,t){return function(i){return i==null?!1:i[e]===t&&(t!==void 0||e in Object(i))}}Tr.exports=Fg});var Dr=U((xv,Pr)=>{var Sg=br(),kg=kr(),Tg=k8();function Pg(e){var t=kg(e);return t.length==1&&t[0][2]?Tg(t[0][0],t[0][1]):function(i){return i===e||Sg(i,e,t)}}Pr.exports=Pg});var T8=U((fv,Ar)=>{var Dg=Do(),Ag=S3();function Ig(e,t){t=Dg(t,e);for(var i=0,l=t.length;e!=null&&i{var Og=T8();function _g(e,t,i){var l=e==null?void 0:Og(e,t);return l===void 0?i:l}Ir.exports=_g});var Wr=U((Ev,_r)=>{function Wg(e,t){return e!=null&&t in Object(e)}_r.exports=Wg});var $r=U((Nv,qr)=>{var qg=Wr(),$g=Ao();function Ug(e,t){return e!=null&&$g(e,t,qg)}qr.exports=Ug});var Gr=U((Rv,Ur)=>{var Gg=F8(),Kg=Or(),Xg=$r(),jg=_6(),Yg=S8(),Qg=k8(),Jg=S3(),eH=1,tH=2;function iH(e,t){return jg(e)&&Yg(t)?Qg(Jg(e),t):function(i){var l=Kg(i,e);return l===void 0&&l===t?Xg(i,e):Gg(t,l,eH|tH)}}Ur.exports=iH});var Xr=U((Bv,Kr)=>{function lH(e){return e}Kr.exports=lH});var Yr=U((zv,jr)=>{function rH(e){return function(t){return t==null?void 0:t[e]}}jr.exports=rH});var Jr=U((yv,Qr)=>{var sH=T8();function aH(e){return function(t){return sH(t,e)}}Qr.exports=aH});var ts=U((bv,es)=>{var oH=Yr(),nH=Jr(),CH=_6(),cH=S3();function mH(e){return CH(e)?oH(cH(e)):nH(e)}es.exports=mH});var ls=U((Fv,is)=>{var hH=Dr(),wH=Gr(),gH=Xr(),HH=I5(),LH=ts();function VH(e){return typeof e=="function"?e:e==null?gH:typeof e=="object"?HH(e)?wH(e[0],e[1]):hH(e):LH(e)}is.exports=VH});var ss=U((Sv,rs)=>{var dH=Pi(),uH=Ml(),vH=ls(),pH=I5();function MH(e,t){return function(i,l){var r=pH(i)?dH:uH,s=t?t():{};return r(i,e,vH(l,2),s)}}rs.exports=MH});var os=U((kv,as)=>{var xH=ki(),fH=ss(),ZH=Object.prototype,EH=ZH.hasOwnProperty,NH=fH(function(e,t,i){EH.call(e,i)?e[i].push(t):xH(e,i,[t])});as.exports=NH});var Na=U((qf,Ea)=>{var NL=B7(),RL=p9(),BL="Expected a function";function zL(e,t,i){var l=!0,r=!0;if(typeof e!="function")throw new TypeError(BL);return RL(i)&&(l="leading"in i?!!i.leading:l,r="trailing"in i?!!i.trailing:r),NL(e,t,{leading:l,maxWait:t,trailing:r})}Ea.exports=zL});var ro=F1(Y1()),so=F1(ee());var i1=F1(Y1());var h5=F1(Y1(),1);var te=X2("div")({name:"ImageOverlayEditorStyle",class:"gdg-i2iowwq",propsAsIs:!1});var We=F1(Ee(),1);var j2=F1(Y1(),1),De=F1(B7(),1);function n0(e,t,i,l,r=!1){let s=j2.useRef();s.current=t,j2.useEffect(()=>{if(i===null||i.addEventListener===void 0)return;let a=i,o=n=>{var C;(C=s.current)==null||C.call(a,n)};return a.addEventListener(e,o,{passive:l,capture:r}),()=>{a.removeEventListener(e,o,{capture:r})}},[e,i,l,r])}function m5(e,t){return e===void 0?void 0:t}var Qn=Math.PI;function Y3(e){return e*Qn/180}var y7=(e,t,i)=>({x1:e-i/2,y1:t-i/2,x2:e+i/2,y2:t+i/2}),b7=(e,t,i,l,r)=>{switch(e){case"left":return Math.floor(t)+l+r/2;case"center":return Math.floor(t+i/2);case"right":return Math.floor(t+i)-l-r/2}},F7=(e,t,i)=>Math.min(e,t-i*2),S7=(e,t,i)=>i.x1<=e&&e<=i.x2&&i.y1<=t&&t<=i.y2,q5=e=>{var i;let t=(i=e.fgColor)!=null?i:"currentColor";return j2.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},j2.createElement("path",{d:"M12.7073 7.05029C7.87391 11.8837 10.4544 9.30322 6.03024 13.7273C5.77392 13.9836 5.58981 14.3071 5.50189 14.6587L4.52521 18.5655C4.38789 19.1148 4.88543 19.6123 5.43472 19.475L9.34146 18.4983C9.69313 18.4104 10.0143 18.2286 10.2706 17.9722L16.9499 11.2929",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",vectorEffect:"non-scaling-stroke"}),j2.createElement("path",{d:"M20.4854 4.92901L19.0712 3.5148C18.2901 2.73375 17.0238 2.73375 16.2428 3.5148L14.475 5.28257C15.5326 7.71912 16.4736 8.6278 18.7176 9.52521L20.4854 7.75744C21.2665 6.97639 21.2665 5.71006 20.4854 4.92901Z",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",vectorEffect:"non-scaling-stroke"}))},Ae=e=>{var i;let t=(i=e.fgColor)!=null?i:"currentColor";return j2.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},j2.createElement("path",{d:"M19 6L10.3802 17L5.34071 11.8758",vectorEffect:"non-scaling-stroke",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))};function Ie(e,t,i){let[l,r]=j2.useState(e),s=j2.useRef(!0);j2.useEffect(()=>()=>{s.current=!1},[]);let a=j2.useRef((0,De.default)(o=>{s.current&&r(o)},i));return j2.useLayoutEffect(()=>{s.current&&a.current(()=>e())},t),l}var Jn="\u0591-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC",eC="A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u0300-\u0590\u0800-\u1FFF\u200E\u2C00-\uFB1C\uFE00-\uFE6F\uFEFD-\uFFFF",tC=new RegExp("^[^"+eC+"]*["+Jn+"]");function $5(e){return tC.test(e)?"rtl":"not-rtl"}var z7;function z9(){if(typeof document=="undefined")return 0;if(z7!==void 0)return z7;let e=document.createElement("p");e.style.width="100%",e.style.height="200px";let t=document.createElement("div");t.id="testScrollbar",t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.style.visibility="hidden",t.style.width="200px",t.style.height="150px",t.style.overflow="hidden",t.append(e),document.body.append(t);let i=e.offsetWidth;t.style.overflow="scroll";let l=e.offsetWidth;return i===l&&(l=t.clientWidth),t.remove(),z7=i-l,z7}var c5=Symbol();function Oe(e){let t=j2.useRef([c5,e]);t.current[1]!==e&&(t.current[0]=e),t.current[1]=e;let[i,l]=j2.useState(e),[,r]=j2.useState(),s=j2.useCallback(o=>{let n=t.current[0];n!==c5&&(o=typeof o=="function"?o(n):o,o===n)||(n!==c5&&r({}),l(C=>typeof o=="function"?o(n===c5?C:n):o),t.current[0]=c5)},[]),a=j2.useCallback(()=>{t.current[0]=c5,r({})},[]);return[t.current[0]===c5?i:t.current[0],s,a]}function k7(e){if(e.length===0)return"";let t=0,i=0;for(let l of e){if(i+=l.length,i>1e4)break;t++}return e.slice(0,t).join(", ")}function _e(e){let t=j2.useRef(e);return r5(e,t.current)||(t.current=e),t.current}var qe=e=>{let{urls:t,canWrite:i,onEditClick:l,renderImage:r}=e,s=t.filter(o=>o!=="");if(s.length===0)return null;let a=s.length>1;return h5.createElement(te,{"data-testid":"GDG-default-image-overlay-editor"},h5.createElement(We.Carousel,{showArrows:a,showThumbs:!1,swipeable:a,emulateTouch:a,infiniteLoop:a},s.map(o=>{var C;let n=(C=r==null?void 0:r(o))!=null?C:h5.createElement("img",{draggable:!1,src:o});return h5.createElement("div",{className:"gdg-centering-container",key:o},n)})),i&&l&&h5.createElement("button",{className:"gdg-edit-icon",onClick:l},h5.createElement(q5,null)))};var Q3=F1(Y1(),1);function Ye(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}var U5=Ye();function iC(e){U5=e}var lC=/[&<>"']/,rC=/[&<>"']/g,sC=/[<>"']|&(?!#?\w+;)/,aC=/[<>"']|&(?!#?\w+;)/g,oC={"&":"&","<":"<",">":">",'"':""","'":"'"},$e=e=>oC[e];function u0(e,t){if(t){if(lC.test(e))return e.replace(rC,$e)}else if(sC.test(e))return e.replace(aC,$e);return e}var nC=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Qe(e){return e.replace(nC,(t,i)=>(i=i.toLowerCase(),i==="colon"?":":i.charAt(0)==="#"?i.charAt(1)==="x"?String.fromCharCode(parseInt(i.substring(2),16)):String.fromCharCode(+i.substring(1)):""))}var CC=/(^|[^\[])\^/g;function b2(e,t){e=typeof e=="string"?e:e.source,t=t||"";let i={replace:(l,r)=>(r=r.source||r,r=r.replace(CC,"$1"),e=e.replace(l,r),i),getRegex:()=>new RegExp(e,t)};return i}var cC=/[^\w:]/g,mC=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Ue(e,t,i){if(e){let l;try{l=decodeURIComponent(Qe(i)).replace(cC,"").toLowerCase()}catch(r){return null}if(l.indexOf("javascript:")===0||l.indexOf("vbscript:")===0||l.indexOf("data:")===0)return null}t&&!mC.test(i)&&(i=HC(t,i));try{i=encodeURI(i).replace(/%25/g,"%")}catch(l){return null}return i}var T7={},hC=/^[^:]+:\/*[^/]*$/,wC=/^([^:]+:)[\s\S]*$/,gC=/^([^:]+:\/*[^/]*)[\s\S]*$/;function HC(e,t){T7[" "+e]||(hC.test(e)?T7[" "+e]=e+"/":T7[" "+e]=P7(e,"/",!0)),e=T7[" "+e];let i=e.indexOf(":")===-1;return t.substring(0,2)==="//"?i?t:e.replace(wC,"$1")+t:t.charAt(0)==="/"?i?t:e.replace(gC,"$1")+t:e+t}var D7={exec:function(){}};function L4(e){let t=1,i,l;for(;t{let n=!1,C=a;for(;--C>=0&&o[C]==="\\";)n=!n;return n?"|":" |"}),l=i.split(/ \|/),r=0;if(l[0].trim()||l.shift(),l.length>0&&!l[l.length-1].trim()&&l.pop(),l.length>t)l.splice(t);else for(;l.length1;)t&1&&(i+=e),t>>=1,e+=e;return i+e}function Xe(e,t,i,l){let r=t.href,s=t.title?u0(t.title):null,a=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){l.state.inLink=!0;let o={type:"link",raw:i,href:r,title:s,text:a,tokens:l.inlineTokens(a)};return l.state.inLink=!1,o}return{type:"image",raw:i,href:r,title:s,text:u0(a)}}function VC(e,t){let i=e.match(/^(\s+)(?:```)/);if(i===null)return t;let l=i[1];return t.split(` +`).map(r=>{let s=r.match(/^\s+/);if(s===null)return r;let[a]=s;return a.length>=l.length?r.slice(l.length):r}).join(` +`)}var y9=class{constructor(t){this.options=t||U5}space(t){let i=this.rules.block.newline.exec(t);if(i&&i[0].length>0)return{type:"space",raw:i[0]}}code(t){let i=this.rules.block.code.exec(t);if(i){let l=i[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:i[0],codeBlockStyle:"indented",text:this.options.pedantic?l:P7(l,` +`)}}}fences(t){let i=this.rules.block.fences.exec(t);if(i){let l=i[0],r=VC(l,i[3]||"");return{type:"code",raw:l,lang:i[2]?i[2].trim().replace(this.rules.inline._escapes,"$1"):i[2],text:r}}}heading(t){let i=this.rules.block.heading.exec(t);if(i){let l=i[2].trim();if(/#$/.test(l)){let r=P7(l,"#");(this.options.pedantic||!r||/ $/.test(r))&&(l=r.trim())}return{type:"heading",raw:i[0],depth:i[1].length,text:l,tokens:this.lexer.inline(l)}}}hr(t){let i=this.rules.block.hr.exec(t);if(i)return{type:"hr",raw:i[0]}}blockquote(t){let i=this.rules.block.blockquote.exec(t);if(i){let l=i[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:i[0],tokens:this.lexer.blockTokens(l,[]),text:l}}}list(t){let i=this.rules.block.list.exec(t);if(i){let l,r,s,a,o,n,C,c,h,g,m,w,L=i[1].trim(),v=L.length>1,V={type:"list",raw:"",ordered:v,start:v?+L.slice(0,-1):"",loose:!1,items:[]};L=v?`\\d{1,9}\\${L.slice(-1)}`:`\\${L}`,this.options.pedantic&&(L=v?L:"[*+-]");let u=new RegExp(`^( {0,3}${L})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;t&&(w=!1,!(!(i=u.exec(t))||this.rules.block.hr.test(t)));){if(l=i[0],t=t.substring(l.length),c=i[2].split(` +`,1)[0],h=t.split(` +`,1)[0],this.options.pedantic?(a=2,m=c.trimLeft()):(a=i[2].search(/[^ ]/),a=a>4?1:a,m=c.slice(a),a+=i[1].length),n=!1,!c&&/^ *$/.test(h)&&(l+=h+` +`,t=t.substring(h.length+1),w=!0),!w){let p=new RegExp(`^ {0,${Math.min(3,a-1)}}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))`),Z=new RegExp(`^ {0,${Math.min(3,a-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),R=new RegExp(`^ {0,${Math.min(3,a-1)}}(?:\`\`\`|~~~)`),x=new RegExp(`^ {0,${Math.min(3,a-1)}}#`);for(;t&&(g=t.split(` +`,1)[0],c=g,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(R.test(c)||x.test(c)||p.test(c)||Z.test(t)));){if(c.search(/[^ ]/)>=a||!c.trim())m+=` +`+c.slice(a);else if(!n)m+=` +`+c;else break;!n&&!c.trim()&&(n=!0),l+=g+` +`,t=t.substring(g.length+1)}}V.loose||(C?V.loose=!0:/\n *\n *$/.test(l)&&(C=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(m),r&&(s=r[0]!=="[ ] ",m=m.replace(/^\[[ xX]\] +/,""))),V.items.push({type:"list_item",raw:l,task:!!r,checked:s,loose:!1,text:m}),V.raw+=l}V.items[V.items.length-1].raw=l.trimRight(),V.items[V.items.length-1].text=m.trimRight(),V.raw=V.raw.trimRight();let d=V.items.length;for(o=0;oR.type==="space"),Z=p.every(R=>{let x=R.raw.split(""),N=0;for(let E of x)if(E===` +`&&(N+=1),N>1)return!0;return!1});!V.loose&&p.length&&Z&&(V.loose=!0,V.items[o].loose=!0)}return V}}html(t){let i=this.rules.block.html.exec(t);if(i){let l={type:"html",raw:i[0],pre:!this.options.sanitizer&&(i[1]==="pre"||i[1]==="script"||i[1]==="style"),text:i[0]};if(this.options.sanitize){let r=this.options.sanitizer?this.options.sanitizer(i[0]):u0(i[0]);l.type="paragraph",l.text=r,l.tokens=this.lexer.inline(r)}return l}}def(t){let i=this.rules.block.def.exec(t);if(i)return i[3]&&(i[3]=i[3].substring(1,i[3].length-1)),{type:"def",tag:i[1].toLowerCase().replace(/\s+/g," "),raw:i[0],href:i[2]?i[2].replace(this.rules.inline._escapes,"$1"):i[2],title:i[3]?i[3].replace(this.rules.inline._escapes,"$1"):i[3]}}table(t){let i=this.rules.block.table.exec(t);if(i){let l={type:"table",header:Ge(i[1]).map(r=>({text:r})),align:i[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:i[3]&&i[3].trim()?i[3].replace(/\n[ \t]*$/,"").split(` +`):[]};if(l.header.length===l.align.length){l.raw=i[0];let r=l.align.length,s,a,o,n;for(s=0;s({text:C}));for(r=l.header.length,a=0;a/i.test(i[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(i[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(i[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:i[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):u0(i[0]):i[0]}}link(t){let i=this.rules.inline.link.exec(t);if(i){let l=i[2].trim();if(!this.options.pedantic&&/^$/.test(l))return;let a=P7(l.slice(0,-1),"\\");if((l.length-a.length)%2===0)return}else{let a=LC(i[2],"()");if(a>-1){let n=(i[0].indexOf("!")===0?5:4)+i[1].length+a;i[2]=i[2].substring(0,a),i[0]=i[0].substring(0,n).trim(),i[3]=""}}let r=i[2],s="";if(this.options.pedantic){let a=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);a&&(r=a[1],s=a[3])}else s=i[3]?i[3].slice(1,-1):"";return r=r.trim(),/^$/.test(l)?r=r.slice(1):r=r.slice(1,-1)),Xe(i,{href:r&&r.replace(this.rules.inline._escapes,"$1"),title:s&&s.replace(this.rules.inline._escapes,"$1")},i[0],this.lexer)}}reflink(t,i){let l;if((l=this.rules.inline.reflink.exec(t))||(l=this.rules.inline.nolink.exec(t))){let r=(l[2]||l[1]).replace(/\s+/g," ");if(r=i[r.toLowerCase()],!r||!r.href){let s=l[0].charAt(0);return{type:"text",raw:s,text:s}}return Xe(l,r,l[0],this.lexer)}}emStrong(t,i,l=""){let r=this.rules.inline.emStrong.lDelim.exec(t);if(!r||r[3]&&l.match(/[\p{L}\p{N}]/u))return;let s=r[1]||r[2]||"";if(!s||s&&(l===""||this.rules.inline.punctuation.exec(l))){let a=r[0].length-1,o,n,C=a,c=0,h=r[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(h.lastIndex=0,i=i.slice(-1*t.length+a);(r=h.exec(i))!=null;){if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!o)continue;if(n=o.length,r[3]||r[4]){C+=n;continue}else if((r[5]||r[6])&&a%3&&!((a+n)%3)){c+=n;continue}if(C-=n,C>0)continue;n=Math.min(n,n+C+c);let g=t.slice(0,a+r.index+(r[0].length-o.length)+n);if(Math.min(a,n)%2){let w=g.slice(1,-1);return{type:"em",raw:g,text:w,tokens:this.lexer.inlineTokens(w)}}let m=g.slice(2,-2);return{type:"strong",raw:g,text:m,tokens:this.lexer.inlineTokens(m)}}}}codespan(t){let i=this.rules.inline.code.exec(t);if(i){let l=i[2].replace(/\n/g," "),r=/[^ ]/.test(l),s=/^ /.test(l)&&/ $/.test(l);return r&&s&&(l=l.substring(1,l.length-1)),l=u0(l,!0),{type:"codespan",raw:i[0],text:l}}}br(t){let i=this.rules.inline.br.exec(t);if(i)return{type:"br",raw:i[0]}}del(t){let i=this.rules.inline.del.exec(t);if(i)return{type:"del",raw:i[0],text:i[2],tokens:this.lexer.inlineTokens(i[2])}}autolink(t,i){let l=this.rules.inline.autolink.exec(t);if(l){let r,s;return l[2]==="@"?(r=u0(this.options.mangle?i(l[1]):l[1]),s="mailto:"+r):(r=u0(l[1]),s=r),{type:"link",raw:l[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}url(t,i){let l;if(l=this.rules.inline.url.exec(t)){let r,s;if(l[2]==="@")r=u0(this.options.mangle?i(l[0]):l[0]),s="mailto:"+r;else{let a;do a=l[0],l[0]=this.rules.inline._backpedal.exec(l[0])[0];while(a!==l[0]);r=u0(l[0]),l[1]==="www."?s="http://"+r:s=r}return{type:"link",raw:l[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(t,i){let l=this.rules.inline.text.exec(t);if(l){let r;return this.lexer.state.inRawBlock?r=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(l[0]):u0(l[0]):l[0]:r=u0(this.options.smartypants?i(l[0]):l[0]),{type:"text",raw:l[0],text:r}}}},D1={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:D7,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};D1._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;D1._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;D1.def=b2(D1.def).replace("label",D1._label).replace("title",D1._title).getRegex();D1.bullet=/(?:[*+-]|\d{1,9}[.)])/;D1.listItemStart=b2(/^( *)(bull) */).replace("bull",D1.bullet).getRegex();D1.list=b2(D1.list).replace(/bull/g,D1.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+D1.def.source+")").getRegex();D1._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";D1._comment=/|$)/;D1.html=b2(D1.html,"i").replace("comment",D1._comment).replace("tag",D1._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();D1.paragraph=b2(D1._paragraph).replace("hr",D1.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",D1._tag).getRegex();D1.blockquote=b2(D1.blockquote).replace("paragraph",D1.paragraph).getRegex();D1.normal=L4({},D1);D1.gfm=L4({},D1.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"});D1.gfm.table=b2(D1.gfm.table).replace("hr",D1.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",D1._tag).getRegex();D1.gfm.paragraph=b2(D1._paragraph).replace("hr",D1.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",D1.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",D1._tag).getRegex();D1.pedantic=L4({},D1.normal,{html:b2(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",D1._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:D7,paragraph:b2(D1.normal._paragraph).replace("hr",D1.hr).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",D1.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var u1={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:D7,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:D7,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~";u1.punctuation=b2(u1.punctuation).replace(/punctuation/g,u1._punctuation).getRegex();u1.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;u1.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g;u1._comment=b2(D1._comment).replace("(?:-->|$)","-->").getRegex();u1.emStrong.lDelim=b2(u1.emStrong.lDelim).replace(/punct/g,u1._punctuation).getRegex();u1.emStrong.rDelimAst=b2(u1.emStrong.rDelimAst,"g").replace(/punct/g,u1._punctuation).getRegex();u1.emStrong.rDelimUnd=b2(u1.emStrong.rDelimUnd,"g").replace(/punct/g,u1._punctuation).getRegex();u1._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;u1._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;u1._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;u1.autolink=b2(u1.autolink).replace("scheme",u1._scheme).replace("email",u1._email).getRegex();u1._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;u1.tag=b2(u1.tag).replace("comment",u1._comment).replace("attribute",u1._attribute).getRegex();u1._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;u1._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;u1._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;u1.link=b2(u1.link).replace("label",u1._label).replace("href",u1._href).replace("title",u1._title).getRegex();u1.reflink=b2(u1.reflink).replace("label",u1._label).replace("ref",D1._label).getRegex();u1.nolink=b2(u1.nolink).replace("ref",D1._label).getRegex();u1.reflinkSearch=b2(u1.reflinkSearch,"g").replace("reflink",u1.reflink).replace("nolink",u1.nolink).getRegex();u1.normal=L4({},u1);u1.pedantic=L4({},u1.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:b2(/^!?\[(label)\]\((.*?)\)/).replace("label",u1._label).getRegex(),reflink:b2(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",u1._label).getRegex()});u1.gfm=L4({},u1.normal,{escape:b2(u1.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\.5&&(l="x"+l.toString(16)),t+="&#"+l+";";return t}var q4=class e{constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||U5,this.options.tokenizer=this.options.tokenizer||new y9,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let i={block:D1.normal,inline:u1.normal};this.options.pedantic?(i.block=D1.pedantic,i.inline=u1.pedantic):this.options.gfm&&(i.block=D1.gfm,this.options.breaks?i.inline=u1.breaks:i.inline=u1.gfm),this.tokenizer.rules=i}static get rules(){return{block:D1,inline:u1}}static lex(t,i){return new e(i).lex(t)}static lexInline(t,i){return new e(i).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,` +`),this.blockTokens(t,this.tokens);let i;for(;i=this.inlineQueue.shift();)this.inlineTokens(i.src,i.tokens);return this.tokens}blockTokens(t,i=[]){this.options.pedantic?t=t.replace(/\t/g," ").replace(/^ +$/gm,""):t=t.replace(/^( *)(\t+)/gm,(o,n,C)=>n+" ".repeat(C.length));let l,r,s,a;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(o=>(l=o.call({lexer:this},t,i))?(t=t.substring(l.raw.length),i.push(l),!0):!1))){if(l=this.tokenizer.space(t)){t=t.substring(l.raw.length),l.raw.length===1&&i.length>0?i[i.length-1].raw+=` +`:i.push(l);continue}if(l=this.tokenizer.code(t)){t=t.substring(l.raw.length),r=i[i.length-1],r&&(r.type==="paragraph"||r.type==="text")?(r.raw+=` +`+l.raw,r.text+=` +`+l.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text):i.push(l);continue}if(l=this.tokenizer.fences(t)){t=t.substring(l.raw.length),i.push(l);continue}if(l=this.tokenizer.heading(t)){t=t.substring(l.raw.length),i.push(l);continue}if(l=this.tokenizer.hr(t)){t=t.substring(l.raw.length),i.push(l);continue}if(l=this.tokenizer.blockquote(t)){t=t.substring(l.raw.length),i.push(l);continue}if(l=this.tokenizer.list(t)){t=t.substring(l.raw.length),i.push(l);continue}if(l=this.tokenizer.html(t)){t=t.substring(l.raw.length),i.push(l);continue}if(l=this.tokenizer.def(t)){t=t.substring(l.raw.length),r=i[i.length-1],r&&(r.type==="paragraph"||r.type==="text")?(r.raw+=` +`+l.raw,r.text+=` +`+l.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text):this.tokens.links[l.tag]||(this.tokens.links[l.tag]={href:l.href,title:l.title});continue}if(l=this.tokenizer.table(t)){t=t.substring(l.raw.length),i.push(l);continue}if(l=this.tokenizer.lheading(t)){t=t.substring(l.raw.length),i.push(l);continue}if(s=t,this.options.extensions&&this.options.extensions.startBlock){let o=1/0,n=t.slice(1),C;this.options.extensions.startBlock.forEach(function(c){C=c.call({lexer:this},n),typeof C=="number"&&C>=0&&(o=Math.min(o,C))}),o<1/0&&o>=0&&(s=t.substring(0,o+1))}if(this.state.top&&(l=this.tokenizer.paragraph(s))){r=i[i.length-1],a&&r.type==="paragraph"?(r.raw+=` +`+l.raw,r.text+=` +`+l.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):i.push(l),a=s.length!==t.length,t=t.substring(l.raw.length);continue}if(l=this.tokenizer.text(t)){t=t.substring(l.raw.length),r=i[i.length-1],r&&r.type==="text"?(r.raw+=` +`+l.raw,r.text+=` +`+l.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):i.push(l);continue}if(t){let o="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw new Error(o)}}return this.state.top=!0,i}inline(t,i=[]){return this.inlineQueue.push({src:t,tokens:i}),i}inlineTokens(t,i=[]){let l,r,s,a=t,o,n,C;if(this.tokens.links){let c=Object.keys(this.tokens.links);if(c.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)c.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,o.index)+"["+Ke("a",o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)a=a.slice(0,o.index)+"["+Ke("a",o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(o=this.tokenizer.rules.inline.escapedEmSt.exec(a))!=null;)a=a.slice(0,o.index+o[0].length-2)+"++"+a.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;t;)if(n||(C=""),n=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(c=>(l=c.call({lexer:this},t,i))?(t=t.substring(l.raw.length),i.push(l),!0):!1))){if(l=this.tokenizer.escape(t)){t=t.substring(l.raw.length),i.push(l);continue}if(l=this.tokenizer.tag(t)){t=t.substring(l.raw.length),r=i[i.length-1],r&&l.type==="text"&&r.type==="text"?(r.raw+=l.raw,r.text+=l.text):i.push(l);continue}if(l=this.tokenizer.link(t)){t=t.substring(l.raw.length),i.push(l);continue}if(l=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(l.raw.length),r=i[i.length-1],r&&l.type==="text"&&r.type==="text"?(r.raw+=l.raw,r.text+=l.text):i.push(l);continue}if(l=this.tokenizer.emStrong(t,a,C)){t=t.substring(l.raw.length),i.push(l);continue}if(l=this.tokenizer.codespan(t)){t=t.substring(l.raw.length),i.push(l);continue}if(l=this.tokenizer.br(t)){t=t.substring(l.raw.length),i.push(l);continue}if(l=this.tokenizer.del(t)){t=t.substring(l.raw.length),i.push(l);continue}if(l=this.tokenizer.autolink(t,je)){t=t.substring(l.raw.length),i.push(l);continue}if(!this.state.inLink&&(l=this.tokenizer.url(t,je))){t=t.substring(l.raw.length),i.push(l);continue}if(s=t,this.options.extensions&&this.options.extensions.startInline){let c=1/0,h=t.slice(1),g;this.options.extensions.startInline.forEach(function(m){g=m.call({lexer:this},h),typeof g=="number"&&g>=0&&(c=Math.min(c,g))}),c<1/0&&c>=0&&(s=t.substring(0,c+1))}if(l=this.tokenizer.inlineText(s,dC)){t=t.substring(l.raw.length),l.raw.slice(-1)!=="_"&&(C=l.raw.slice(-1)),n=!0,r=i[i.length-1],r&&r.type==="text"?(r.raw+=l.raw,r.text+=l.text):i.push(l);continue}if(t){let c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return i}},b9=class{constructor(t){this.options=t||U5}code(t,i,l){let r=(i||"").match(/\S*/)[0];if(this.options.highlight){let s=this.options.highlight(t,r);s!=null&&s!==t&&(l=!0,t=s)}return t=t.replace(/\n$/,"")+` +`,r?'
'+(l?t:u0(t,!0))+`
+`:"
"+(l?t:u0(t,!0))+`
`}blockquote(t){return`
${t}
-`}html(t){return t}heading(t,l,r,i){if(this.options.headerIds){let s=this.options.headerPrefix+i.slug(r);return`${t} -`}return`${t} +`}html(t){return t}heading(t,i,l,r){if(this.options.headerIds){let s=this.options.headerPrefix+r.slug(l);return`${t} +`}return`${t} `}hr(){return this.options.xhtml?`
`:`
-`}list(t,l,r){let i=l?"ol":"ul",s=l&&r!==1?' start="'+r+'"':"";return"<"+i+s+`> -`+t+" +`}list(t,i,l){let r=i?"ol":"ul",s=i&&l!==1?' start="'+l+'"':"";return"<"+r+s+`> +`+t+" `}listitem(t){return`
  • ${t}
  • `}checkbox(t){return" "}paragraph(t){return`

    ${t}

    -`}table(t,l){return l&&(l=`${l}`),` +`}table(t,i){return i&&(i=`${i}`),`
    `+t+` -`+l+`
    +`+i+` `}tablerow(t){return` ${t} -`}tablecell(t,l){let r=l.header?"th":"td";return(l.align?`<${r} align="${l.align}">`:`<${r}>`)+t+` -`}strong(t){return`${t}`}em(t){return`${t}`}codespan(t){return`${t}`}br(){return this.options.xhtml?"
    ":"
    "}del(t){return`${t}`}link(t,l,r){if(t=Hu(this.options.sanitize,this.options.baseUrl,t),t===null)return r;let i='",i}image(t,l,r){if(t=Hu(this.options.sanitize,this.options.baseUrl,t),t===null)return r;let i=`${r}":">",i}text(t){return t}},et=class{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,l,r){return""+r}image(t,l,r){return""+r}br(){return""}},tt=class{constructor(){this.seen={}}serialize(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(t,l){let r=t,i=0;if(this.seen.hasOwnProperty(r)){i=this.seen[t];do i++,r=t+"-"+i;while(this.seen.hasOwnProperty(r))}return l||(this.seen[t]=i,this.seen[r]=0),r}slug(t,l={}){let r=this.serialize(t);return this.getNextSafeSlug(r,l.dryrun)}},F5=class e{constructor(t){this.options=t||K7,this.options.renderer=this.options.renderer||new Me,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new et,this.slugger=new tt}static parse(t,l){return new e(l).parse(t)}static parseInline(t,l){return new e(l).parseInline(t)}parse(t,l=!0){let r="",i,s,o,a,n,c,C,m,h,u,d,H,f,w,g,L,v,M,E,p=t.length;for(i=0;i0&&g.tokens[0].type==="paragraph"?(g.tokens[0].text=M+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&g.tokens[0].tokens[0].type==="text"&&(g.tokens[0].tokens[0].text=M+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:M}):w+=M),w+=this.parse(g.tokens,f),h+=this.renderer.listitem(w,v,L);r+=this.renderer.list(h,d,H);continue}case"html":{r+=this.renderer.html(u.text);continue}case"paragraph":{r+=this.renderer.paragraph(this.parseInline(u.tokens));continue}case"text":{for(h=u.tokens?this.parseInline(u.tokens):u.text;i+1{i(n.text,n.lang,function(c,C){if(c)return o(c);C!=null&&C!==n.text&&(n.text=C,n.escaped=!0),a--,a===0&&o()})},0))}),a===0&&o();return}function r(i){if(i.message+=` -Please report this to https://github.com/markedjs/marked.`,t.silent)return"

    An error occurred:

    "+R0(i.message+"",!0)+"
    ";throw i}try{let i=h9.lex(e,t);if(t.walkTokens){if(t.async)return Promise.all(A1.walkTokens(i,t.walkTokens)).then(()=>F5.parse(i,t)).catch(r);A1.walkTokens(i,t.walkTokens)}return F5.parse(i,t)}catch(i){r(i)}}A1.options=A1.setOptions=function(e){return Q4(A1.defaults,e),Uz(A1.defaults),A1};A1.getDefaults=fu;A1.defaults=K7;A1.use=function(...e){let t=Q4({},...e),l=A1.defaults.extensions||{renderers:{},childTokens:{}},r;e.forEach(i=>{if(i.extensions&&(r=!0,i.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if(s.renderer){let o=l.renderers?l.renderers[s.name]:null;o?l.renderers[s.name]=function(...a){let n=s.renderer.apply(this,a);return n===!1&&(n=o.apply(this,a)),n}:l.renderers[s.name]=s.renderer}if(s.tokenizer){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");l[s.level]?l[s.level].unshift(s.tokenizer):l[s.level]=[s.tokenizer],s.start&&(s.level==="block"?l.startBlock?l.startBlock.push(s.start):l.startBlock=[s.start]:s.level==="inline"&&(l.startInline?l.startInline.push(s.start):l.startInline=[s.start]))}s.childTokens&&(l.childTokens[s.name]=s.childTokens)})),i.renderer){let s=A1.defaults.renderer||new Me;for(let o in i.renderer){let a=s[o];s[o]=(...n)=>{let c=i.renderer[o].apply(s,n);return c===!1&&(c=a.apply(s,n)),c}}t.renderer=s}if(i.tokenizer){let s=A1.defaults.tokenizer||new xe;for(let o in i.tokenizer){let a=s[o];s[o]=(...n)=>{let c=i.tokenizer[o].apply(s,n);return c===!1&&(c=a.apply(s,n)),c}}t.tokenizer=s}if(i.walkTokens){let s=A1.defaults.walkTokens;t.walkTokens=function(o){let a=[];return a.push(i.walkTokens.call(this,o)),s&&(a=a.concat(s.call(this,o))),a}}r&&(t.extensions=l),A1.setOptions(t)})};A1.walkTokens=function(e,t){let l=[];for(let r of e)switch(l=l.concat(t.call(A1,r)),r.type){case"table":{for(let i of r.header)l=l.concat(A1.walkTokens(i.tokens,t));for(let i of r.rows)for(let s of i)l=l.concat(A1.walkTokens(s.tokens,t));break}case"list":{l=l.concat(A1.walkTokens(r.items,t));break}default:A1.defaults.extensions&&A1.defaults.extensions.childTokens&&A1.defaults.extensions.childTokens[r.type]?A1.defaults.extensions.childTokens[r.type].forEach(function(i){l=l.concat(A1.walkTokens(r[i],t))}):r.tokens&&(l=l.concat(A1.walkTokens(r.tokens,t)))}return l};A1.parseInline=function(e,t){if(typeof e=="undefined"||e===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof e!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");t=Q4({},A1.defaults,t||{}),Mu(t);try{let l=h9.lexInline(e,t);return t.walkTokens&&A1.walkTokens(l,t.walkTokens),F5.parseInline(l,t)}catch(l){if(l.message+=` -Please report this to https://github.com/markedjs/marked.`,t.silent)return"

    An error occurred:

    "+R0(l.message+"",!0)+"
    ";throw l}};A1.Parser=F5;A1.parser=F5.parse;A1.Renderer=Me;A1.TextRenderer=et;A1.Lexer=h9;A1.lexer=h9.lex;A1.Tokenizer=xe;A1.Slugger=tt;A1.parse=A1;var vP=A1.options,pP=A1.setOptions,fP=A1.use,xP=A1.walkTokens,MP=A1.parseInline;var ZP=F5.parse,EP=h9.lex;var C4=y1(K1(),1),Y9=y1(K1(),1),Wd=y1(K1(),1),$d=y1(K1(),1),Ud=y1(K1(),1),J4=y1(K1(),1),qd=y1(K1(),1),fF=y1(K1(),1);function Gu(e="This should not happen"){throw new Error(e)}function n4(e,t="Assertion failed"){if(!e)return Gu(t)}function Be(e,t){return Gu(t!=null?t:"Hell froze over")}function ny(e,t){try{return e()}catch(l){return t}}var Zu=Object.prototype.hasOwnProperty;function wt(e,t){let l,r;if(e===t)return!0;if(e&&t&&(l=e.constructor)===t.constructor){if(l===Date)return e.getTime()===t.getTime();if(l===RegExp)return e.toString()===t.toString();if(l===Array){if((r=e.length)===t.length)for(;r--&&wt(e[r],t[r]););return r===-1}if(!l||typeof e=="object"){r=0;for(l in e)if(Zu.call(e,l)&&++r&&!Zu.call(t,l)||!(l in t)||!wt(e[l],t[l]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}var Qu=class extends e3.PureComponent{constructor(){super(...arguments),this.wrapperRef=e3.createRef(),this.clickOutside=e=>{if(!(this.props.isOutsideClick&&!this.props.isOutsideClick(e))&&this.wrapperRef.current!==null&&!this.wrapperRef.current.contains(e.target)){let t=e.target;for(;t!==null;){if(t.classList.contains("click-outside-ignore"))return;t=t.parentElement}this.props.onClickOutside()}}}componentDidMount(){document.addEventListener("touchend",this.clickOutside,!0),document.addEventListener("mousedown",this.clickOutside,!0),document.addEventListener("contextmenu",this.clickOutside,!0)}componentWillUnmount(){document.removeEventListener("touchend",this.clickOutside,!0),document.removeEventListener("mousedown",this.clickOutside,!0),document.removeEventListener("contextmenu",this.clickOutside,!0)}render(){let r=this.props,{onClickOutside:e,isOutsideClick:t}=r,l=v0(r,["onClickOutside","isOutsideClick"]);return e3.createElement("div",j(S({},l),{ref:this.wrapperRef}),this.props.children)}};function ed(e){var t,l;return{"--gdg-accent-color":e.accentColor,"--gdg-accent-fg":e.accentFg,"--gdg-accent-light":e.accentLight,"--gdg-text-dark":e.textDark,"--gdg-text-medium":e.textMedium,"--gdg-text-light":e.textLight,"--gdg-text-bubble":e.textBubble,"--gdg-bg-icon-header":e.bgIconHeader,"--gdg-fg-icon-header":e.fgIconHeader,"--gdg-text-header":e.textHeader,"--gdg-text-group-header":(t=e.textGroupHeader)!=null?t:e.textHeader,"--gdg-text-header-selected":e.textHeaderSelected,"--gdg-bg-cell":e.bgCell,"--gdg-bg-cell-medium":e.bgCellMedium,"--gdg-bg-header":e.bgHeader,"--gdg-bg-header-has-focus":e.bgHeaderHasFocus,"--gdg-bg-header-hovered":e.bgHeaderHovered,"--gdg-bg-bubble":e.bgBubble,"--gdg-bg-bubble-selected":e.bgBubbleSelected,"--gdg-bg-search-result":e.bgSearchResult,"--gdg-border-color":e.borderColor,"--gdg-horizontal-border-color":(l=e.horizontalBorderColor)!=null?l:e.borderColor,"--gdg-drilldown-border":e.drilldownBorder,"--gdg-link-color":e.linkColor,"--gdg-cell-horizontal-padding":`${e.cellHorizontalPadding}px`,"--gdg-cell-vertical-padding":`${e.cellVerticalPadding}px`,"--gdg-header-font-style":e.headerFontStyle,"--gdg-base-font-style":e.baseFontStyle,"--gdg-marker-font-style":e.markerFontStyle,"--gdg-font-family":e.fontFamily,"--gdg-editor-font-size":e.editorFontSize}}var td={accentColor:"#4F5DFF",accentFg:"#FFFFFF",accentLight:"rgba(62, 116, 253, 0.1)",textDark:"#313139",textMedium:"#737383",textLight:"#B2B2C0",textBubble:"#313139",bgIconHeader:"#737383",fgIconHeader:"#FFFFFF",textHeader:"#313139",textGroupHeader:"#313139BB",textHeaderSelected:"#FFFFFF",bgCell:"#FFFFFF",bgCellMedium:"#FAFAFB",bgHeader:"#F7F7F8",bgHeaderHasFocus:"#E9E9EB",bgHeaderHovered:"#EFEFF1",bgBubble:"#EDEDF3",bgBubbleSelected:"#FFFFFF",bgSearchResult:"#fff9e3",borderColor:"rgba(115, 116, 131, 0.16)",drilldownBorder:"rgba(0, 0, 0, 0)",linkColor:"#4F5DFF",cellHorizontalPadding:8,cellVerticalPadding:3,headerIconSize:18,headerFontStyle:"600 13px",baseFontStyle:"13px",markerFontStyle:"9px",fontFamily:"Inter, Roboto, -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Ubuntu, noto, arial, sans-serif",editorFontSize:"13px",lineHeight:1.4};function ld(){return td}var rd=Ju.default.createContext(td);function cy(e,t){let[l,r]=t;if(e.columns.hasIndex(l)||e.rows.hasIndex(r))return!0;if(e.current!==void 0){if(e.current.cell[0]===l&&e.current.cell[1]===r)return!0;let i=[e.current.range,...e.current.rangeStack];for(let s of i)if(l>=s.x&&l=s.y&&r(e.Uri="uri",e.Text="text",e.Image="image",e.RowID="row-id",e.Number="number",e.Bubble="bubble",e.Boolean="boolean",e.Loading="loading",e.Markdown="markdown",e.Drilldown="drilldown",e.Protected="protected",e.Custom="custom",e))(m1||{}),V9=(e=>(e.HeaderRowID="headerRowID",e.HeaderCode="headerCode",e.HeaderNumber="headerNumber",e.HeaderString="headerString",e.HeaderBoolean="headerBoolean",e.HeaderAudioUri="headerAudioUri",e.HeaderVideoUri="headerVideoUri",e.HeaderEmoji="headerEmoji",e.HeaderImage="headerImage",e.HeaderUri="headerUri",e.HeaderPhone="headerPhone",e.HeaderMarkdown="headerMarkdown",e.HeaderDate="headerDate",e.HeaderTime="headerTime",e.HeaderEmail="headerEmail",e.HeaderReference="headerReference",e.HeaderIfThenElse="headerIfThenElse",e.HeaderSingleValue="headerSingleValue",e.HeaderLookup="headerLookup",e.HeaderTextTemplate="headerTextTemplate",e.HeaderMath="headerMath",e.HeaderRollup="headerRollup",e.HeaderJoinStrings="headerJoinStrings",e.HeaderSplitString="headerSplitString",e.HeaderGeoDistance="headerGeoDistance",e.HeaderArray="headerArray",e.RowOwnerOverlay="rowOwnerOverlay",e.ProtectedColumnOverlay="protectedColumnOverlay",e))(V9||{}),dt="___gdg_header_cell_",sd=dt+"checked",od=dt+"unchecked",Cy=dt+"indeterminate";function lt(e){return"width"in e&&typeof e.width=="number"}async function Eu(e){return typeof e=="object"?e:await e()}function k5(e){return e.kind==="loading"||e.kind==="bubble"||e.kind==="row-id"||e.kind==="protected"||e.kind==="drilldown"?!1:!0}function u9(e){return e.kind==="marker"||e.kind==="new-row"}function Y7(e){if(!k5(e)||e.kind==="image")return!1;if(e.kind==="text"||e.kind==="number"||e.kind==="markdown"||e.kind==="uri"||e.kind==="custom"||e.kind==="boolean")return e.readonly!==!0;Be(e,"A cell was passed with an invalid kind")}function ad(e){return(0,id.default)(e,"editor")}function Qi(e){var t;return!((t=e.readonly)!=null&&t)}var e5=(e=>(e.NewRow="new-row",e.Marker="marker",e))(e5||{});function my(e){if(e.length===0)return[];let t=[...e],l=[];t.sort(function(r,i){return r[0]-i[0]}),l.push([...t[0]]);for(let r of t.slice(1)){let i=l[l.length-1];i[1][r[0]+t,r[1]+t]);return new ot(l)}add(t){let l=typeof t=="number"?[t,t+1]:t,r=my([...this.items,l]);return new ot(r)}remove(t){let l=[...this.items],r=typeof t=="number"?t:t[0],i=typeof t=="number"?t+1:t[1];for(let[s,o]of l.entries()){let[a,n]=o;if(a<=i&&r<=n){let c=[];a=r&&tUi!=null?Ui:Ui=new Se([]);Se.fromSingleSelection=e=>Se.empty().add(e);var N2=Se,hy=()=>e=>e.targetY,wy=()=>e=>e.targetX-1,gy=()=>e=>e.targetY-1,uy=()=>e=>e.targetWidth+2,dy=()=>e=>e.targetHeight+2,Hy=()=>e=>e.targetY+10,Ly=()=>e=>Math.max(0,(e.targetHeight-28)/2),Vy=W0("div")({name:"DataGridOverlayEditorStyle",class:"d1t1th9s",propsAsIs:!1,vars:{"d1t1th9s-0":[hy(),"px"],"d1t1th9s-1":[wy(),"px"],"d1t1th9s-2":[gy(),"px"],"d1t1th9s-3":[uy(),"px"],"d1t1th9s-4":[dy(),"px"],"d1t1th9s-5":[Hy(),"px"],"d1t1th9s-6":[Ly(),"px"]}});function vy(){let[e,t]=w5.useState();return[e!=null?e:void 0,t]}function py(){let[e,t]=vy(),[l,r]=w5.useState(0),[i,s]=w5.useState(!0);w5.useLayoutEffect(()=>{if(e===void 0||!("IntersectionObserver"in window))return;let a=new IntersectionObserver(n=>{n.length!==0&&s(n[0].isIntersecting)},{threshold:1});return a.observe(e),()=>a.disconnect()},[e]),w5.useEffect(()=>{if(i||e===void 0)return;let a,n=()=>{let{right:c}=e.getBoundingClientRect();r(C=>Math.min(C+window.innerWidth-c-10,0)),a=requestAnimationFrame(n)};return a=requestAnimationFrame(n),()=>{a!==void 0&&cancelAnimationFrame(a)}},[e,i]);let o=w5.useMemo(()=>({transform:`translateX(${l}px)`}),[l]);return{ref:t,style:o}}var fy=e=>{let{target:t,content:l,onFinishEditing:r,forceEditMode:i,initialValue:s,imageEditorOverride:o,markdownDivCreateNode:a,highlight:n,className:c,theme:C,id:m,cell:h,validateCell:u,getCellRenderer:d,provideEditor:H,isOutsideClick:f}=e,[w,g]=c0.useState(i?l:void 0),L=c0.useRef(w!=null?w:l);L.current=w!=null?w:l;let[v,M]=c0.useState(()=>u===void 0?!0:!(k5(l)&&(u==null?void 0:u(h,l,L.current))===!1)),E=c0.useCallback((r1,d1)=>{r(v?r1:void 0,d1)},[v,r]),p=c0.useCallback(r1=>{if(u!==void 0&&r1!==void 0&&k5(r1)){let d1=u(h,r1,L.current);d1===!1?M(!1):(typeof d1=="object"&&(r1=d1),M(!0))}g(r1)},[h,u]),x=c0.useRef(!1),Z=c0.useRef(void 0),N=c0.useCallback(()=>{E(w,[0,0]),x.current=!0},[w,E]),F=c0.useCallback((r1,d1)=>{var T1;E(r1,(T1=d1!=null?d1:Z.current)!=null?T1:[0,0]),x.current=!0},[E]),b=c0.useCallback(async r1=>{let d1=!1;r1.key==="Escape"?(r1.stopPropagation(),r1.preventDefault(),Z.current=[0,0]):r1.key==="Enter"&&!r1.shiftKey?(r1.stopPropagation(),r1.preventDefault(),Z.current=[0,1],d1=!0):r1.key==="Tab"&&(r1.stopPropagation(),r1.preventDefault(),Z.current=[r1.shiftKey?-1:1,0],d1=!0),window.setTimeout(()=>{!x.current&&Z.current!==void 0&&(E(d1?w:void 0,Z.current),x.current=!0)},0)},[E,w]),B=w!=null?w:l,[U,g1]=c0.useMemo(()=>{var r1,d1;if(u9(l))return[];let T1=H==null?void 0:H(l);return T1!==void 0?[T1,!1]:[(d1=(r1=d(l))==null?void 0:r1.provideEditor)==null?void 0:d1.call(r1,l),!1]},[l,d,H]),{ref:h1,style:J}=py(),n1=!0,O,a1=!0,q;if(U!==void 0){n1=U.disablePadding!==!0,a1=U.disableStyling!==!0;let r1=ad(U);r1&&(q=U.styleOverride);let d1=r1?U.editor:U;O=c0.createElement(d1,{isHighlighted:n,onChange:p,value:B,initialValue:s,onFinishedEditing:F,validatedSelection:k5(B)?B.selectionRange:void 0,forceEditMode:i,target:t,imageEditorOverride:o,markdownDivCreateNode:a,isValid:v})}q=S(S({},q),J);let E1=document.getElementById("portal");if(E1===null)return console.error('Cannot open Data Grid overlay editor, because portal not found. Please add `
    ` as the last child of your ``.'),null;let c1=a1?"gdg-style":"gdg-unstyle";return v||(c1+=" invalid"),n1&&(c1+=" pad"),(0,Yu.createPortal)(c0.createElement(rd.Provider,{value:C},c0.createElement(Qu,{style:ed(C),className:c,onClickOutside:N,isOutsideClick:f},c0.createElement(Vy,{ref:h1,id:m,className:c1,style:q,as:g1===!0?"label":void 0,targetX:t.x,targetY:t.y,targetWidth:t.width,targetHeight:t.height},c0.createElement("div",{className:"clip-region",onKeyDown:b},O)))),E1)},xy=fy,cs=65536,qi=[];function Nu(e,t){return t*cs+e}function Cd(e){return e%cs}function md(e,t){return(e-t)/cs}function My(e){let t=Cd(e),l=md(e,t);return[t,l]}var Zy=class{constructor(){this.imageLoaded=()=>{},this.loadedLocations=[],this.visibleWindow={x:0,y:0,width:0,height:0},this.freezeCols=0,this.isInWindow=e=>{let t=Cd(e),l=md(e,t),r=this.visibleWindow;return t=r.y&&l<=r.y+r.height?!0:t>=r.x&&t<=r.x+r.width&&l>=r.y&&l<=r.y+r.height},this.cache={},this.sendLoaded=(0,cd.default)(()=>{this.imageLoaded(this.loadedLocations),this.loadedLocations=[]},20),this.clearOutOfWindow=()=>{let e=Object.keys(this.cache);for(let t of e){let l=this.cache[t],r=!1;for(let i=0;i{a||(a=!0,qi.length<12?qi.unshift(o):s||(o.src=""))}},c=new Promise(C=>o.addEventListener("load",()=>C(null)));requestAnimationFrame(async()=>{try{o.src=e,await c,await o.decode();let C=this.cache[r];if(C!==void 0&&!a){C.img=o;for(let m of C.cells)this.loadedLocations.push(My(m));s=!0,this.sendLoaded()}}catch(C){n.cancel()}}),this.cache[r]=n}loadOrGetImage(e,t,l){let r=e,i=this.cache[r];if(i!==void 0){let s=Nu(t,l);return i.cells.includes(s)||i.cells.push(s),i.img}else this.loadImage(e,t,l,r)}},Ey=Zy;function I0(e,t,l,r,i=!1){let s=r0.useRef();s.current=t,r0.useEffect(()=>{if(l===null||l.addEventListener===void 0)return;let o=l,a=n=>{var c;(c=s.current)==null||c.call(o,n)};return o.addEventListener(e,a,{passive:r,capture:i}),()=>{o.removeEventListener(e,a,{capture:i})}},[e,l,r,i])}function Ze(e,t){return e===void 0?void 0:t}var Ny=Math.PI;function Ru(e){return e*Ny/180}var wd=(e,t,l)=>({x1:e-l/2,y1:t-l/2,x2:e+l/2,y2:t+l/2}),gd=(e,t,l,r,i)=>{switch(e){case"left":return Math.floor(t)+r+i/2;case"center":return Math.floor(t+l/2);case"right":return Math.floor(t+l)-r-i/2}},ud=(e,t,l)=>Math.min(e,t-l*2),dd=(e,t,l)=>l.x1<=e&&e<=l.x2&&l.y1<=t&&t<=l.y2,Cs=e=>{var t;let l=(t=e.fgColor)!=null?t:"currentColor";return r0.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r0.createElement("path",{d:"M12.7073 7.05029C7.87391 11.8837 10.4544 9.30322 6.03024 13.7273C5.77392 13.9836 5.58981 14.3071 5.50189 14.6587L4.52521 18.5655C4.38789 19.1148 4.88543 19.6123 5.43472 19.475L9.34146 18.4983C9.69313 18.4104 10.0143 18.2286 10.2706 17.9722L16.9499 11.2929",stroke:l,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",vectorEffect:"non-scaling-stroke"}),r0.createElement("path",{d:"M20.4854 4.92901L19.0712 3.5148C18.2901 2.73375 17.0238 2.73375 16.2428 3.5148L14.475 5.28257C15.5326 7.71912 16.4736 8.6278 18.7176 9.52521L20.4854 7.75744C21.2665 6.97639 21.2665 5.71006 20.4854 4.92901Z",stroke:l,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",vectorEffect:"non-scaling-stroke"}))},Ry=e=>{var t;let l=(t=e.fgColor)!=null?t:"currentColor";return r0.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r0.createElement("path",{d:"M19 6L10.3802 17L5.34071 11.8758",vectorEffect:"non-scaling-stroke",stroke:l,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))};function zy(e,t,l){let[r,i]=r0.useState(e),s=r0.useRef(!0);r0.useEffect(()=>()=>{s.current=!1},[]);let o=r0.useRef((0,hd.default)(a=>{s.current&&i(a)},l));return r0.useLayoutEffect(()=>{s.current&&o.current(()=>e())},t),r}var Hd="\u0591-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC",Ld="A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u0300-\u0590\u0800-\u1FFF\u200E\u2C00-\uFB1C\uFE00-\uFE6F\uFEFD-\uFFFF",yy=new RegExp("^[^"+Ld+"]*["+Hd+"]"),By=new RegExp("^[^"+Hd+"]*["+Ld+"]");function ms(e){return yy.test(e)?"rtl":By.test(e)?"ltr":"neutral"}var rt=void 0;function Ji(){if(rt!==void 0)return rt;let e=document.createElement("p");e.style.width="100%",e.style.height="200px";let t=document.createElement("div");t.id="testScrollbar",t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.style.visibility="hidden",t.style.width="200px",t.style.height="150px",t.style.overflow="hidden",t.append(e),document.body.append(t);let l=e.offsetWidth;t.style.overflow="scroll";let r=e.offsetWidth;return l===r&&(r=t.clientWidth),t.remove(),rt=l-r,rt}var j9=Symbol();function Sy(e){let t=r0.useRef([j9,e]);t.current[1]!==e&&(t.current[0]=e),t.current[1]=e;let[l,r]=r0.useState(e),[,i]=r0.useState(),s=r0.useCallback(a=>{let n=t.current[0];n!==j9&&(a=typeof a=="function"?a(n):a,a===n)||(n!==j9&&i({}),r(c=>typeof a=="function"?a(n===j9?c:n):a),t.current[0]=j9)},[]),o=r0.useCallback(()=>{t.current[0]=j9,i({})},[]);return[t.current[0]===j9?l:t.current[0],s,o]}function Vd(e){if(e.length===0)return"";let t=0,l=0;for(let r of e){if(l+=r.length,l>1e4)break;t++}return e.slice(0,t).join(", ")}function Fy(e,t){return vd.default.useMemo(()=>e.map((l,r)=>j(S({},l),{sourceIndex:r,sticky:r=t.span[0]&&r<=t.span[1]}function zu(e,t,l){let r=l.x,i=l.x+l.width-1,s=l.y,o=l.y+l.height-1,[a,n]=e;if(no)return!1;if(t.span===void 0)return a>=r&&a<=i;let[c,C]=t.span;return c>=r&&c<=i||C>=r&&c<=i||ci}function by(e,t,l){let r=0;if(l.current===void 0)return r;zu(e,t,l.current.range)&&r++;for(let i of l.current.rangeStack)zu(e,t,i)&&r++;return r}function pd(e,t){let l=e;if(t!==void 0){let r=[...e],i=l[t.src];t.src>t.dest?(r.splice(t.src,1),r.splice(t.dest,0,i)):(r.splice(t.dest+1,0,i),r.splice(t.src,1)),r=r.map((s,o)=>j(S({},s),{sticky:e[o].sticky})),l=r}return l}function Q7(e,t){let l=0,r=pd(e,t);for(let i=0;i0)for(let c of o)l-=c.width;let a=t,n=i!=null?i:0;for(;n<=l&&at-m)return s-1;let h=s-(c?1:0),u=e-(n!=null?n:0);if(typeof o=="number"){let d=Math.floor((u-C)/o)+a;return d>=h?void 0:d}else{let d=C;for(let H=a;H1e4&&(nt={},at=0),i}function b5(e,t){return typeof t!="string"&&(t=`${t.baseFontStyle} ${t.fontFamily}`),Oy(e,t)}function yu(e,t){let l="ABCDEFGHIJKLMNOPQRSTUVWXYZ";e.save(),e.textBaseline=t;let r=e.measureText(l);return e.restore(),r}var Bu=[];function Oy(e,t){for(let s of Bu)if(s.key===t)return s.val;let l=yu(e,"alphabetic"),i=-(yu(e,"middle").actualBoundingBoxDescent-l.actualBoundingBoxDescent)+l.actualBoundingBoxAscent/2;return Bu.push({key:t,val:i}),i}function Ay(e,t,l,r,i){let{ctx:s,rect:o,theme:a}=e,n=Number.MAX_SAFE_INTEGER,c=500;if(t!==void 0&&(n=l-t,nd&&(t=t.slice(0,d))}let h=b5(s,a),u=ms(t)==="rtl";if(l===void 0&&u&&(l="right"),u&&(s.direction="rtl"),t.length>0){let d=!1;if(l==="right"?(s.textAlign="right",d=!0):l!==void 0&&l!=="left"&&(s.textAlign=l,d=!0),!r)Su(s,t,n,c,C,m,h,a,l);else{let H=`${a.fontFamily} ${a.baseFontStyle}`,f=wh(s,t,H,C-a.cellHorizontalPadding*2,i!=null?i:!1),w=fd(s,H),g=a.lineHeight*w,L=w+g*(f.length-1),v=L+a.cellVerticalPadding>m;v&&(s.save(),s.rect(n,c,C,m),s.clip());let M=c+m/2-L/2,E=Math.max(c+a.cellVerticalPadding,M);for(let p of f)if(Su(s,p,n,E,C,w,h,a,l),E+=g,E>c+m)break;v&&s.restore()}d&&(s.textAlign="start"),u&&(s.direction="inherit")}}function Wy(e,t,l){let{ctx:r,rect:i,hoverAmount:s,theme:o,spriteManager:a}=e,{x:n,y:c,width:C,height:m}=i;r.beginPath(),r.globalAlpha=s,r.rect(n,c,C,m),r.fillStyle=o.bgHeaderHovered,r.fill(),r.globalAlpha=1,r.beginPath();let h=t!=="",u=0;if(l!==void 0){let H=m-8,f=n+8/2,w=c+8/2;a.drawSprite(l,"normal",r,f,w,H,o,h?1:s),u=H}else{u=24;let d=12,H=h?d:s*d,f=h?0:(1-s)*d*.5,w=o.cellHorizontalPadding+4;H>0&&(r.moveTo(n+w+f,c+m/2),r.lineTo(n+w+f+H,c+m/2),r.moveTo(n+w+f+H*.5,c+m/2-H*.5),r.lineTo(n+w+f+H*.5,c+m/2+H*.5),r.lineWidth=2,r.strokeStyle=o.bgIconHeader,r.lineCap="round",r.stroke())}r.fillStyle=o.textMedium,r.fillText(t,u+n+o.cellHorizontalPadding+.5,c+m/2+b5(r,o)),r.beginPath()}function ws(e,t,l,r,i,s,o,a,n=-20,c=-20,C=32,m="center"){let h=Math.floor(i+o/2),u=4,d=ud(C,o,t.cellVerticalPadding),H=d/2,f=gd(m,r,s,t.cellHorizontalPadding,d),w=wd(f,h,d),g=dd(r+n,i+c,w);switch(l){case!0:{e.beginPath(),H9(e,f-d/2,h-d/2,d,d,u),e.fillStyle=a?t.accentColor:t.textMedium,e.fill(),e.beginPath(),e.moveTo(f-H+d/4.23,h-H+d/1.97),e.lineTo(f-H+d/2.42,h-H+d/1.44),e.lineTo(f-H+d/1.29,h-H+d/3.25),e.strokeStyle=t.bgCell,e.lineJoin="round",e.lineCap="round",e.lineWidth=1.9,e.stroke();break}case gt:case!1:{e.beginPath(),H9(e,f-d/2+.5,h-d/2+.5,d-1,d-1,u),e.lineWidth=1,e.strokeStyle=g?t.textDark:t.textMedium,e.stroke();break}case ns:{e.beginPath(),H9(e,f-d/2,h-d/2,d,d,u),e.fillStyle=g?t.textMedium:t.textLight,e.fill(),e.beginPath(),e.moveTo(f-d/3,h),e.lineTo(f+d/3,h),e.strokeStyle=t.bgCell,e.lineCap="round",e.lineWidth=1.9,e.stroke();break}default:Be(l)}}function $y(e,t){let{ctx:l,theme:r}=e,i=`9px ${r.fontFamily}`,s=t!=null?t:{};return(s==null?void 0:s.font)!==i&&(l.font=i,s.font=i),s.deprep=Uy,l.textAlign="center",s}function Uy(e){let{ctx:t}=e;t.textAlign="start"}function qy(e,t,l,r,i){let{ctx:s,rect:o,hoverAmount:a,theme:n}=e,{x:c,y:C,width:m,height:h}=o,u=l?1:r==="checkbox-visible"?.6+.4*a:a;if(r!=="number"&&u>0){s.globalAlpha=u;let d=7*(l?a:1);if(ws(s,n,l,i?c+d:c,C,i?m-d:m,h,!0,void 0,void 0,18),i){s.globalAlpha=a,s.beginPath();for(let H of[3,6])for(let f of[-5,-1,3])s.rect(c+H,C+h/2+f,2,2);s.fillStyle=n.textLight,s.fill(),s.beginPath()}s.globalAlpha=1}if(r==="number"||r==="both"&&!l){let d=t.toString(),H=`${n.markerFontStyle} ${n.fontFamily}`,f=c+m/2;r==="both"&&a!==0&&(s.globalAlpha=1-a),s.fillStyle=n.textLight,s.font=H,s.fillText(d,f,C+h/2+b5(s,H)),a!==0&&(s.globalAlpha=1)}}function jy(e){let{ctx:t,theme:l,rect:r}=e,{x:i,y:s,height:o}=r;t.beginPath();let a=2.5,n=i+l.cellHorizontalPadding+a,c=s+o/2,C=Math.cos(Ru(30))*a,m=Math.sin(Ru(30))*a;for(let h=0;h<12;h++)t.moveTo(n,c-a),t.lineTo(n,c+a),t.moveTo(n+C,c-m),t.lineTo(n-C,c+m),t.moveTo(n-C,c-m),t.lineTo(n+C,c+m),n+=8;t.lineWidth=1.1,t.lineCap="square",t.strokeStyle=l.textLight,t.stroke()}function H9(e,t,l,r,i,s){typeof s=="number"&&(s={tl:s,tr:s,br:s,bl:s}),s={tl:Math.min(s.tl,i/2,r/2),tr:Math.min(s.tr,i/2,r/2),bl:Math.min(s.bl,i/2,r/2),br:Math.min(s.br,i/2,r/2)},e.moveTo(t+s.tl,l),e.arcTo(t+r,l,t+r,l+s.tr,s.tr),e.arcTo(t+r,l+i,t+r-s.br,l+i,s.br),e.arcTo(t,l+i,t,l+i-s.bl,s.bl),e.arcTo(t,l,t+s.tl,l,s.tl)}function Gy(e,t,l,r){if(!l&&t===gt)return;let{ctx:i,hoverAmount:s,theme:o,rect:a,highlighted:n,hoverX:c,hoverY:C,cell:{contentAlign:m}}=e,{x:h,y:u,width:d,height:H}=a,f=.35,w=l?1-f+f*s:.4;t===gt&&(w*=s),w!==0&&(i.globalAlpha=w,ws(i,o,t,h,u,d,H,n,c,C,r,m),i.globalAlpha=1)}var ye=4;function Ky(e,t){let{rect:l,theme:r,ctx:i,highlighted:s}=e,{x:o,y:a,width:n,height:c}=l,C=20,m=8,h=ye,u=o+r.cellHorizontalPadding,d=[];for(let H of t){if(u>o+n)break;let f=hs(H,i,`${r.baseFontStyle} ${r.fontFamily}`).width;d.push({x:u,width:f}),u+=f+m*2+h}i.beginPath();for(let H of d)H9(i,H.x,a+(c-C)/2,H.width+m*2,C,C/2);i.fillStyle=s?r.bgBubbleSelected:r.bgBubble,i.fill();for(let[H,f]of d.entries())i.beginPath(),i.fillStyle=r.textBubble,i.fillText(t[H],f.x+m,a+c/2+b5(i,r))}var ji={};function Xy(e,t,l){let r=Math.ceil(window.devicePixelRatio),i=5,s=l-i*2,o=4,a=6,n=l*r,c=a+i,C=a*3,m=(C+i*2)*r,h=`${e},${t},${r},${l}`;if(ji[h]!==void 0)return{el:ji[h],height:n,width:m,middleWidth:o*r,sideWidth:c*r,padding:i*r,dpr:r};let u=document.createElement("canvas"),d=u.getContext("2d");if(d===null)return null;u.width=m,u.height=n,d.scale(r,r),ji[h]=u;let H=Math.min(a,C/2,s/2);return d.beginPath(),H9(d,i,i,C,s,H),d.shadowColor="rgba(24, 25, 34, 0.4)",d.shadowBlur=1,d.fillStyle=e,d.fill(),d.shadowColor="rgba(24, 25, 34, 0.3)",d.shadowOffsetY=1,d.shadowBlur=5,d.fillStyle=e,d.fill(),d.shadowOffsetY=0,d.shadowBlur=0,d.shadowBlur=0,d.beginPath(),H9(d,i+.5,i+.5,C,s,H),d.strokeStyle=t,d.lineWidth=1,d.stroke(),{el:u,height:n,width:m,sideWidth:c*r,middleWidth:a*r,padding:i*r,dpr:r}}function Yy(e,t){let{rect:l,theme:r,ctx:i,imageLoader:s,col:o,row:a}=e,{x:n,width:c}=l,C=`${r.baseFontStyle} ${r.fontFamily}`,m=fd(i,C),h=Math.min(l.height,Math.max(16,Math.ceil(m*r.lineHeight)*2)),u=Math.floor(l.y+(l.height-h)/2),d=h-10,H=8,f=ye,w=n+r.cellHorizontalPadding,g=Xy(r.bgCell,r.drilldownBorder,h),L=[];for(let v of t){if(w>n+c)break;let E=hs(v.text,i,C).width,p=0;v.img!==void 0&&s.loadOrGetImage(v.img,o,a)!==void 0&&(p=d-8+4);let x=E+p+H*2;L.push({x:w,width:x}),w+=x+f}if(g!==null){let{el:v,height:M,middleWidth:E,sideWidth:p,width:x,dpr:Z,padding:N}=g,F=p/Z,b=N/Z;for(let B of L){let U=Math.floor(B.x),g1=Math.floor(B.width),h1=g1-(F-b)*2;i.imageSmoothingEnabled=!1,i.drawImage(v,0,0,p,M,U-b,u,F,h),h1>0&&i.drawImage(v,p,0,E,M,U+(F-b),u,h1,h),i.drawImage(v,x-p,0,p,M,U+g1-(F-b),u,F,h),i.imageSmoothingEnabled=!0}}i.beginPath();for(let[v,M]of L.entries()){let E=t[v],p=M.x+H;if(E.img!==void 0){let x=s.loadOrGetImage(E.img,o,a);if(x!==void 0){let Z=d-8,N=0,F=0,b=x.width,B=x.height;b>B?(N+=(b-B)/2,b=B):B>b&&(F+=(B-b)/2,B=b),i.beginPath(),H9(i,p,u+h/2-Z/2,Z,Z,3),i.save(),i.clip(),i.drawImage(x,N,F,b,B,p,u+h/2-Z/2,Z,Z),i.restore(),p+=Z+4}}i.beginPath(),i.fillStyle=r.textBubble,i.fillText(E.text,p,u+h/2+b5(i,r))}}function Qy(e,t,l=4,r){let{rect:i,col:s,row:o,theme:a,ctx:n,imageLoader:c}=e,{x:C,y:m,height:h,width:u}=i,d=h-a.cellVerticalPadding*2,H=[],f=0;for(let g=0;g0&&(H9(n,w,m+a.cellVerticalPadding,L,d,l),n.save(),n.clip()),n.drawImage(g,w,m+a.cellVerticalPadding,L,d),l>0&&n.restore(),w+=L+ye}}function Jy(e,t,l){let r=function(a,n){let c=n.x-a.x,C=n.y-a.y,m=Math.sqrt(c*c+C*C),h=c/m,u=C/m;return{x:c,y:n.y-a.y,len:m,nx:h,ny:u,ang:Math.atan2(u,h)}},i,s=t.length,o=t[s-1];for(let a=0;a1?1:h),H=1,f=!1;u<0?d<0?d=Math.PI+d:(d=Math.PI-d,H=-1,f=!0):d>0&&(H=-1,f=!0),i=n.radius!==void 0?n.radius:l;let w=d/2,g=Math.abs(Math.cos(w)*i/Math.sin(w)),L;g>Math.min(C.len/2,m.len/2)?(g=Math.min(C.len/2,m.len/2),L=Math.abs(g*Math.sin(w)/Math.cos(w))):L=i;let v=n.x+m.nx*g,M=n.y+m.ny*g;v+=-m.ny*L*H,M+=m.nx*L*H,e.arc(v,M,L,C.ang+Math.PI/2*H,m.ang-Math.PI/2*H,f),o=n,n=c}e.closePath()}function Re(e,t,l,r,i,s,o,a,n,c,C,m,h,u,d){let H={x:0,y:s+c,width:0,height:0},f=s-i;if(e>=m){let w=o>e?-1:1,g=Q7(u);H.x+=g+n;for(let L=o;L!==e;L+=w)H.x+=u[w===1?L:L-1].width*w}else for(let w=0;w0&&Fe(u[w-1].group,g)&&u[w-1].sticky===L;){let M=u[w-1];H.x-=M.width,H.width+=M.width,w--}let v=e;for(;v+1l&&(H.width=l-H.x)}}else if(h&&t===C-1){let w=typeof d=="number"?d:d(t);H.y=r-w,H.height=w}else{let w=a>t?-1:1;if(typeof d=="number"){let g=t-a;H.y+=g*d}else for(let g=a;g!==t;g+=w)H.y+=d(g)*w;H.height=(typeof d=="number"?d:d(t))+1}return H}var O2='',eB=e=>{let t=e.fgColor,l=e.bgColor;return` - ${O2}`},tB=e=>{let t=e.fgColor,l=e.bgColor;return` - ${O2}`},lB=e=>{let t=e.fgColor,l=e.bgColor;return`${O2} - +`}tablecell(t,i){let l=i.header?"th":"td";return(i.align?`<${l} align="${i.align}">`:`<${l}>`)+t+` +`}strong(t){return`${t}`}em(t){return`${t}`}codespan(t){return`${t}`}br(){return this.options.xhtml?"
    ":"
    "}del(t){return`${t}`}link(t,i,l){if(t=Ue(this.options.sanitize,this.options.baseUrl,t),t===null)return l;let r='
    ",r}image(t,i,l){if(t=Ue(this.options.sanitize,this.options.baseUrl,t),t===null)return l;let r=`${l}":">",r}text(t){return t}},A7=class{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,i,l){return""+l}image(t,i,l){return""+l}br(){return""}},I7=class{constructor(){this.seen={}}serialize(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(t,i){let l=t,r=0;if(this.seen.hasOwnProperty(l)){r=this.seen[t];do r++,l=t+"-"+r;while(this.seen.hasOwnProperty(l))}return i||(this.seen[t]=r,this.seen[l]=0),l}slug(t,i={}){let l=this.serialize(t);return this.getNextSafeSlug(l,i.dryrun)}},k4=class e{constructor(t){this.options=t||U5,this.options.renderer=this.options.renderer||new b9,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new A7,this.slugger=new I7}static parse(t,i){return new e(i).parse(t)}static parseInline(t,i){return new e(i).parseInline(t)}parse(t,i=!0){let l="",r,s,a,o,n,C,c,h,g,m,w,L,v,V,u,d,p,Z,R,x=t.length;for(r=0;r0&&u.tokens[0].type==="paragraph"?(u.tokens[0].text=Z+" "+u.tokens[0].text,u.tokens[0].tokens&&u.tokens[0].tokens.length>0&&u.tokens[0].tokens[0].type==="text"&&(u.tokens[0].tokens[0].text=Z+" "+u.tokens[0].tokens[0].text)):u.tokens.unshift({type:"text",text:Z}):V+=Z),V+=this.parse(u.tokens,v),g+=this.renderer.listitem(V,p,d);l+=this.renderer.list(g,w,L);continue}case"html":{l+=this.renderer.html(m.text);continue}case"paragraph":{l+=this.renderer.paragraph(this.parseInline(m.tokens));continue}case"text":{for(g=m.tokens?this.parseInline(m.tokens):m.text;r+1{r(n.text,n.lang,function(C,c){if(C)return a(C);c!=null&&c!==n.text&&(n.text=c,n.escaped=!0),o--,o===0&&a()})},0))}),o===0&&a();return}function l(r){if(r.message+=` +Please report this to https://github.com/markedjs/marked.`,t.silent)return"

    An error occurred:

    "+u0(r.message+"",!0)+"
    ";throw r}try{let r=q4.lex(e,t);if(t.walkTokens){if(t.async)return Promise.all(O1.walkTokens(r,t.walkTokens)).then(()=>k4.parse(r,t)).catch(l);O1.walkTokens(r,t.walkTokens)}return k4.parse(r,t)}catch(r){l(r)}}O1.options=O1.setOptions=function(e){return L4(O1.defaults,e),iC(O1.defaults),O1};O1.getDefaults=Ye;O1.defaults=U5;O1.use=function(...e){let t=L4({},...e),i=O1.defaults.extensions||{renderers:{},childTokens:{}},l;e.forEach(r=>{if(r.extensions&&(l=!0,r.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if(s.renderer){let a=i.renderers?i.renderers[s.name]:null;a?i.renderers[s.name]=function(...o){let n=s.renderer.apply(this,o);return n===!1&&(n=a.apply(this,o)),n}:i.renderers[s.name]=s.renderer}if(s.tokenizer){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");i[s.level]?i[s.level].unshift(s.tokenizer):i[s.level]=[s.tokenizer],s.start&&(s.level==="block"?i.startBlock?i.startBlock.push(s.start):i.startBlock=[s.start]:s.level==="inline"&&(i.startInline?i.startInline.push(s.start):i.startInline=[s.start]))}s.childTokens&&(i.childTokens[s.name]=s.childTokens)})),r.renderer){let s=O1.defaults.renderer||new b9;for(let a in r.renderer){let o=s[a];s[a]=(...n)=>{let C=r.renderer[a].apply(s,n);return C===!1&&(C=o.apply(s,n)),C}}t.renderer=s}if(r.tokenizer){let s=O1.defaults.tokenizer||new y9;for(let a in r.tokenizer){let o=s[a];s[a]=(...n)=>{let C=r.tokenizer[a].apply(s,n);return C===!1&&(C=o.apply(s,n)),C}}t.tokenizer=s}if(r.walkTokens){let s=O1.defaults.walkTokens;t.walkTokens=function(a){let o=[];return o.push(r.walkTokens.call(this,a)),s&&(o=o.concat(s.call(this,a))),o}}l&&(t.extensions=i),O1.setOptions(t)})};O1.walkTokens=function(e,t){let i=[];for(let l of e)switch(i=i.concat(t.call(O1,l)),l.type){case"table":{for(let r of l.header)i=i.concat(O1.walkTokens(r.tokens,t));for(let r of l.rows)for(let s of r)i=i.concat(O1.walkTokens(s.tokens,t));break}case"list":{i=i.concat(O1.walkTokens(l.items,t));break}default:O1.defaults.extensions&&O1.defaults.extensions.childTokens&&O1.defaults.extensions.childTokens[l.type]?O1.defaults.extensions.childTokens[l.type].forEach(function(r){i=i.concat(O1.walkTokens(l[r],t))}):l.tokens&&(i=i.concat(O1.walkTokens(l.tokens,t)))}return i};O1.parseInline=function(e,t){if(typeof e=="undefined"||e===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof e!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");t=L4({},O1.defaults,t||{}),Je(t);try{let i=q4.lexInline(e,t);return t.walkTokens&&O1.walkTokens(i,t.walkTokens),k4.parseInline(i,t)}catch(i){if(i.message+=` +Please report this to https://github.com/markedjs/marked.`,t.silent)return"

    An error occurred:

    "+u0(i.message+"",!0)+"
    ";throw i}};O1.Parser=k4;O1.parser=k4.parse;O1.Renderer=b9;O1.TextRenderer=A7;O1.Lexer=q4;O1.lexer=q4.lex;O1.Tokenizer=y9;O1.Slugger=I7;O1.parse=O1;var UV=O1.options,GV=O1.setOptions,KV=O1.use,XV=O1.walkTokens,jV=O1.parseInline;var YV=k4.parse,QV=q4.lex;var et=X2("div")({name:"MarkdownContainer",class:"gdg-mnuv029",propsAsIs:!1});var F9=class extends Q3.default.PureComponent{constructor(){super(...arguments);c2(this,"targetElement",null);c2(this,"containerRefHook",i=>{this.targetElement=i,this.renderMarkdownIntoDiv()})}renderMarkdownIntoDiv(){let{targetElement:i,props:l}=this;if(i===null)return;let{contents:r,createNode:s}=l,a=O1(r),o=document.createRange();o.selectNodeContents(i),o.deleteContents();let n=s==null?void 0:s(a);if(n===void 0){let c=document.createElement("template");c.innerHTML=a,n=c.content}i.append(n);let C=i.getElementsByTagName("a");for(let c of C)c.target="_blank",c.rel="noreferrer noopener"}render(){return this.renderMarkdownIntoDiv(),Q3.default.createElement(et,{ref:this.containerRefHook})}};var A0=F1(Y1(),1);var tt=X2("textarea")({name:"InputBox",class:"gdg-izpuzkl",propsAsIs:!1}),it=X2("div")({name:"ShadowBox",class:"gdg-s69h75o",propsAsIs:!1}),lt=X2("div")({name:"GrowingEntryStyle",class:"gdg-g1y0xocz",propsAsIs:!1});var rt=0,$4=e=>{let w=e,{placeholder:t,value:i,onKeyDown:l,highlight:r,altNewline:s,validatedSelection:a}=w,o=o0(w,["placeholder","value","onKeyDown","highlight","altNewline","validatedSelection"]),{onChange:n,className:C}=o,c=A0.useRef(null),h=i!=null?i:"";d0(n!==void 0,"GrowingEntry must be a controlled input area");let[g]=A0.useState(()=>"input-box-"+(rt=(rt+1)%1e7));A0.useEffect(()=>{let L=c.current;if(L===null||L.disabled)return;let v=h.toString().length;L.focus(),L.setSelectionRange(r?0:v,v)},[]),A0.useLayoutEffect(()=>{var L;if(a!==void 0){let v=typeof a=="number"?[a,null]:a;(L=c.current)==null||L.setSelectionRange(v[0],v[1])}},[a]);let m=A0.useCallback(L=>{L.key==="Enter"&&L.shiftKey&&s===!0||l==null||l(L)},[s,l]);return A0.createElement(lt,{className:"gdg-growing-entry"},A0.createElement(it,{className:C},h+` +`),A0.createElement(tt,P(y({},o),{className:(C!=null?C:"")+" gdg-input",id:g,ref:c,onKeyDown:m,value:h,placeholder:t,dir:"auto"})))};var ct=F1(Y1(),1);var G5=new Map,K5=new Map,J3=new Map;function st(){G5.clear(),J3.clear(),K5.clear()}function uC(e,t,i,l,r){var s,a,o;let n=0,C={};for(let h of e)n+=(s=i.get(h))!=null?s:r,C[h]=((a=C[h])!=null?a:0)+1;let c=t-n;for(let h of Object.keys(C)){let g=C[h],m=(o=i.get(h))!=null?o:r,w=m*g/n,L=c*w*l/g,v=m+L;i.set(h,v)}}function vC(e,t){var i;let l=new Map,r=0;for(let C of"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890,.-+=?"){let c=e.measureText(C).width;l.set(C,c),r+=c}let s=r/l.size,a=3,o=(t/s+a)/(a+1),n=l.keys();for(let C of n)l.set(C,((i=l.get(C))!=null?i:s)*o);return l}function S9(e,t,i,l){var r,s;let a=K5.get(i);if(l&&a!==void 0&&a.count>2e4){let C=J3.get(i);if(C===void 0&&(C=vC(e,a.size),J3.set(i,C)),a.count>5e5){let h=0;for(let g of t)h+=(r=C.get(g))!=null?r:a.size;return h*1.01}let c=e.measureText(t);return uC(t,c.width,C,Math.max(.05,1-a.count/2e5),a.size),K5.set(i,{count:a.count+t.length,size:a.size}),c.width}let o=e.measureText(t),n=o.width/t.length;if(((s=a==null?void 0:a.count)!=null?s:0)>2e4)return o.width;if(a===void 0)K5.set(i,{count:t.length,size:n});else{let C=n-a.size,c=t.length/(a.count+t.length),h=a.size+C*c;K5.set(i,{count:a.count+t.length,size:h})}return o.width}function pC(e,t,i,l,r,s,a,o){if(t.length<=1)return t.length;if(ri;){let h=c!==void 0?0:t.lastIndexOf(" ",n-1);h>0?n=h:n--,C=S9(e,t.slice(0,Math.max(0,n)),l,a)}if(t[n]!==" "){let h=0;if(c===void 0)h=t.lastIndexOf(" ",n);else for(let g of c){if(g>n)break;h=g}h>0&&(n=h)}return n}function at(e,t,i,l,r,s){let a=`${t}_${i}_${l}px`,o=G5.get(a);if(o!==void 0)return o;if(l<=0)return[];let n=[],C=t.split(` +`),c=K5.get(i),h=c===void 0?t.length:l/c.size*1.5,g=r&&c!==void 0&&c.count>2e4;for(let m of C){let w=S9(e,m.slice(0,Math.max(0,h)),i,g),L=Math.min(m.length,h);if(w<=l)n.push(m);else{for(;w>l;){let v=pC(e,m,l,i,w,L,g,s),V=m.slice(0,Math.max(0,v));m=m.slice(V.length),n.push(V),w=S9(e,m.slice(0,Math.max(0,h)),i,g),L=Math.min(m.length,h)}w>0&&n.push(m)}}return n=n.map((m,w)=>w===0?m.trimEnd():m.trim()),G5.set(a,n),G5.size>500&&G5.delete(G5.keys().next().value),n}function mt(e,t){return ct.default.useMemo(()=>e.map((i,l)=>({group:i.group,grow:i.grow,hasMenu:i.hasMenu,icon:i.icon,id:i.id,menuIcon:i.menuIcon,overlayIcon:i.overlayIcon,sourceIndex:l,sticky:l=s.x&&i=s.y&&l=t.span[0]&&i.current.cell[0]<=t.span[1]}function _7(e,t){let[i,l]=e;return i>=t.x&&i=t.y&&la)return!1;if(t.span===void 0)return o>=l&&o<=r;let[C,c]=t.span;return C>=l&&C<=r||c>=l&&C<=r||Cr}function gt(e,t,i,l){let r=0;if(i.current===void 0)return r;let s=i.current.range;(l||s.height*s.width>1)&&ot(e,t,s)&&r++;for(let a of i.current.rangeStack)ot(e,t,a)&&r++;return r}function Ht(e,t){let i=e;if(t!==void 0){let l=[...e],r=i[t.src];t.src>t.dest?(l.splice(t.src,1),l.splice(t.dest,0,r)):(l.splice(t.dest+1,0,r),l.splice(t.src,1)),l=l.map((s,a)=>P(y({},s),{sticky:e[a].sticky})),i=l}return i}function Z4(e,t){let i=0,l=Ht(e,t);for(let r=0;r0)for(let C of a)i-=C.width;let o=t,n=r!=null?r:0;for(;n<=i&&o=h)return L}let g=s-C,m=e-(n!=null?n:0);if(typeof a=="number"){let w=Math.floor((m-c)/a)+o;return w>=g?void 0:w}else{let w=c;for(let L=o;L1e4&&(k9={},O7=0),s}function ut(e,t){let i=dt(e,void 0,"middle",t);return k9[i]}function x0(e,t){return typeof t!="string"&&(t=t.baseFontFull),fC(e,t)}function nt(e,t){let i="ABCDEFGHIJKLMNOPQRSTUVWXYZ";e.save(),e.textBaseline=t;let l=e.measureText(i);return e.restore(),l}var Ct=[];function fC(e,t){for(let s of Ct)if(s.key===t)return s.val;let i=nt(e,"alphabetic"),r=-(nt(e,"middle").actualBoundingBoxDescent-i.actualBoundingBoxDescent)+i.actualBoundingBoxAscent/2;return Ct.push({key:t,val:r}),r}function vt(e,t,i,l,r,s){let{ctx:a,rect:o,theme:n}=e,C=Number.MAX_SAFE_INTEGER,c=500;if(t!==void 0&&(C=i-t,Ci&&(e=e.slice(0,i)),e}function EC(e,t,i,l,r,s,a,o,n,C){let c=o.baseFontFull,h=at(e,t,c,r-o.cellHorizontalPadding*2,C!=null?C:!1),g=e8(e,c),m=o.lineHeight*g,w=g+m*(h.length-1),L=w+o.cellVerticalPadding>s;L&&(e.save(),e.rect(i,l,r,s),e.clip());let v=l+s/2-w/2,V=Math.max(l+o.cellVerticalPadding,v);for(let u of h)if(pt(e,u,i,V,r,g,a,o,n),V+=m,V>l+s)break;L&&e.restore()}function I0(e,t,i,l,r){let{ctx:s,rect:a,theme:o}=e,{x:n,y:C,width:c,height:h}=a;l=l!=null?l:!1,l||(t=ZC(t,c));let g=x0(s,o),m=$5(t)==="rtl";if(i===void 0&&m&&(i="right"),m&&(s.direction="rtl"),t.length>0){let w=!1;i==="right"?(s.textAlign="right",w=!0):i!==void 0&&i!=="left"&&(s.textAlign=i,w=!0),l?EC(s,t,n,C,c,h,g,o,i,r):pt(s,t,n,C,c,h,g,o,i),w&&(s.textAlign="start"),m&&(s.direction="inherit")}}function f0(e,t,i,l,r,s){typeof s=="number"&&(s={tl:s,tr:s,br:s,bl:s}),s={tl:Math.max(0,Math.min(s.tl,r/2,l/2)),tr:Math.max(0,Math.min(s.tr,r/2,l/2)),bl:Math.max(0,Math.min(s.bl,r/2,l/2)),br:Math.max(0,Math.min(s.br,r/2,l/2))},e.moveTo(t+s.tl,i),e.arcTo(t+l,i,t+l,i+s.tr,s.tr),e.arcTo(t+l,i+r,t+l-s.br,i+r,s.br),e.arcTo(t,i+r,t,i+r-s.bl,s.bl),e.arcTo(t,i,t+s.tl,i,s.tl)}function Mt(e,t,i){e.arc(t,i-1.25*3.5,1.25,0,2*Math.PI,!1),e.arc(t,i,1.25,0,2*Math.PI,!1),e.arc(t,i+1.25*3.5,1.25,0,2*Math.PI,!1)}function t8(e,t,i){let l=function(o,n){let C=n.x-o.x,c=n.y-o.y,h=Math.sqrt(C*C+c*c),g=C/h,m=c/h;return{x:C,y:n.y-o.y,len:h,nx:g,ny:m,ang:Math.atan2(m,g)}},r,s=t.length,a=t[s-1];for(let o=0;o1?1:g),L=1,v=!1;m<0?w<0?w=Math.PI+w:(w=Math.PI-w,L=-1,v=!0):w>0&&(L=-1,v=!0),r=n.radius!==void 0?n.radius:i;let V=w/2,u=Math.abs(Math.cos(V)*r/Math.sin(V)),d;u>Math.min(c.len/2,h.len/2)?(u=Math.min(c.len/2,h.len/2),d=Math.abs(u*Math.sin(V)/Math.cos(V))):d=r;let p=n.x+h.nx*u,Z=n.y+h.ny*u;p+=-h.ny*d*L,Z+=h.nx*d*L,e.arc(p,Z,d,c.ang+Math.PI/2*L,h.ang-Math.PI/2*L,v),a=n,n=C}e.closePath()}function P9(e,t,i,l,r,s,a,o,n,C,c,h,g,m,w){let L={x:0,y:s+C,width:0,height:0};if(e>=m.length||t>=c||t<-2||e<0)return L;let v=s-r;if(e>=h){let V=a>e?-1:1,u=Z4(m);L.x+=u+n;for(let d=a;d!==e;d+=V)L.x+=m[V===1?d:d-1].width*V}else for(let V=0;V0&&w5(m[V-1].group,u)&&m[V-1].sticky===d;){let Z=m[V-1];L.x-=Z.width,L.width+=Z.width,V--}let p=e;for(;p+1i&&(L.width=i-L.x)}}else if(t>=c-g){let V=c-t;for(L.y=l;V>0;){let u=t+V-1;L.height=typeof w=="number"?w:w(u),L.y-=L.height,V--}L.height+=1}else{let V=o>t?-1:1;if(typeof w=="number"){let u=t-o;L.y+=u*w}else for(let u=o;u!==t;u+=V)L.y+=w(u)*V;L.height=(typeof w=="number"?w:w(t))+1}return L}var i8=1<<21;function F0(e,t){return(t+2)*i8+e}function xt(e){return e%i8}function $7(e){return Math.floor(e/i8)-2}function X5(e){let t=xt(e),i=$7(e);return[t,i]}var D9=class{constructor(){c2(this,"visibleWindow",{x:0,y:0,width:0,height:0});c2(this,"freezeCols",0);c2(this,"freezeRows",[]);c2(this,"isInWindow",t=>{let i=xt(t),l=$7(t),r=this.visibleWindow,s=i>=r.x&&i<=r.x+r.width||i=r.y&&l<=r.y+r.height||this.freezeRows.includes(l);return s&&a})}setWindow(t,i,l){this.visibleWindow.x===t.x&&this.visibleWindow.y===t.y&&this.visibleWindow.width===t.width&&this.visibleWindow.height===t.height&&this.freezeCols===i&&r5(this.freezeRows,l)||(this.visibleWindow=t,this.freezeCols=i,this.freezeRows=l,this.clearOutOfWindow())}},q7=class extends D9{constructor(){super(...arguments);c2(this,"cache",new Map);c2(this,"setValue",(i,l)=>{this.cache.set(F0(i[0],i[1]),l)});c2(this,"getValue",i=>this.cache.get(F0(i[0],i[1])));c2(this,"clearOutOfWindow",()=>{for(let[i]of this.cache.entries())this.isInWindow(i)||this.cache.delete(i)})}};var R4=class{constructor(t=[]){c2(this,"cells");this.cells=new Set(t.map(i=>F0(i[0],i[1])))}add(t){this.cells.add(F0(t[0],t[1]))}has(t){return t===void 0?!1:this.cells.has(F0(t[0],t[1]))}remove(t){this.cells.delete(F0(t[0],t[1]))}clear(){this.cells.clear()}get size(){return this.cells.size}hasHeader(){for(let t of this.cells)if($7(t)<0)return!0;return!1}hasItemInRectangle(t){for(let i=t.y;i{let m=NC(e,g[l],t,n);return C=Math.max(C,m),m});if(c.length>5&&o){C=0;let g=0;for(let w of c)g+=w;let m=g/c.length;for(let w=0;w=m*2?c[w]=0:C=Math.max(C,c[w])}C=Math.max(C,e.measureText(i.title).width+16+(i.icon===void 0?0:28));let h=Math.max(Math.ceil(s),Math.min(Math.floor(a),Math.ceil(C)));return P(y({},i),{width:h})}function ft(e,t,i,l,r,s,a,o,n){let C=O0.useRef(t),c=O0.useRef(i),h=O0.useRef(a);C.current=t,c.current=i,h.current=a;let[g,m]=O0.useMemo(()=>{if(typeof window=="undefined")return[null,null];let u=document.createElement("canvas");return u.style.display="none",u.style.opacity="0",u.style.position="fixed",[u,u.getContext("2d",{alpha:!1})]},[]);O0.useLayoutEffect(()=>(g&&document.documentElement.append(g),()=>{g==null||g.remove()}),[g]);let w=O0.useRef({}),L=O0.useRef(),[v,V]=O0.useState();return O0.useLayoutEffect(()=>{let u=c.current;if(u===void 0||e.every(x9))return;let d=Math.max(1,10-Math.floor(e.length/1e4)),p=0;d1&&(d--,p=1);let Z={x:0,y:0,width:e.length,height:Math.min(C.current,d)},R={x:0,y:C.current-1,width:e.length,height:1};(async()=>{let N=u(Z,n.signal),E=p>0?u(R,n.signal):void 0,S;typeof N=="object"?S=N:S=await T3(N),E!==void 0&&(typeof E=="object"?S=[...S,...E]:S=[...S,...await T3(E)]),L.current=e,V(S)})()},[n.signal,e]),O0.useMemo(()=>{var x;let d=e.every(x9)?e:m===null?e.map(N=>x9(N)?N:P(y({},N),{width:l8})):(m.font=h.current.baseFontFull,e.map((N,E)=>{if(x9(N))return N;if(w.current[N.id]!==void 0)return P(y({},N),{width:w.current[N.id]});if(v===void 0||L.current!==e||N.id===void 0)return P(y({},N),{width:l8});let S=r8(m,a,N,E,v,r,s,!0,o);return w.current[N.id]=S.width,S})),p=0,Z=0,R=[];for(let[N,E]of d.entries())p+=E.width,E.grow!==void 0&&E.grow>0&&(Z+=E.grow,R.push(N));if(p0){let N=[...d],E=l-p,S=E;for(let k=0;k{let t=e.fgColor,i=e.bgColor;return` + ${P2}`},Oc=e=>{let t=e.fgColor,i=e.bgColor;return` + ${P2}`},_c=e=>{let t=e.fgColor,i=e.bgColor;return`${P2} + - `},rB=e=>{let t=e.fgColor,l=e.bgColor;return`${O2} - + `},Wc=e=>{let t=e.fgColor,i=e.bgColor;return`${P2} + -`},iB=e=>{let t=e.fgColor,l=e.bgColor;return`${O2} +`},qc=e=>{let t=e.fgColor,i=e.bgColor;return`${P2} An d="M7.66667 6.66669C5.73368 6.66669 4.16667 8.15907 4.16667 10C4.16667 11.841 5.73368 13.3334 7.66667 13.3334H12.3333C14.2663 13.3334 15.8333 11.841 15.8333 10C15.8333 8.15907 14.2663 6.66669 12.3333 6.66669H7.66667ZM12.5 12.5C13.8807 12.5 15 11.3807 15 10C15 8.61931 13.8807 7.50002 12.5 7.50002C11.1193 7.50002 10 8.61931 10 10C10 11.3807 11.1193 12.5 12.5 12.5Z" fill="${t}" /> -`},xd=e=>{let t=e.fgColor,l=e.bgColor;return`${O2} - +`},xi=e=>{let t=e.fgColor,i=e.bgColor;return`${P2} + - `},sB=e=>{let t=e.bgColor;return`${O2} + `},$c=e=>{let t=e.bgColor;return`${P2} -`},oB=xd,aB=e=>{let t=e.fgColor,l=e.bgColor;return`${O2} - +`},Uc=xi,Gc=e=>{let t=e.fgColor,i=e.bgColor;return`${P2} + -`},nB=e=>{let t=e.fgColor,l=e.bgColor;return` - ${O2} +`},Kc=e=>{let t=e.fgColor,i=e.bgColor;return` + ${P2} - + - `},cB=e=>{let t=e.fgColor,l=e.bgColor;return`${O2} - + `},Xc=e=>{let t=e.fgColor,i=e.bgColor;return`${P2} + -`},CB=e=>{let t=e.fgColor,l=e.bgColor;return` - ${O2} +`},jc=e=>{let t=e.fgColor,i=e.bgColor;return` + ${P2} - - `},mB=e=>{let t=e.fgColor,l=e.bgColor;return` - ${O2} - + + `},Yc=e=>{let t=e.fgColor,i=e.bgColor;return` + ${P2} + - `},hB=e=>{let t=e.fgColor,l=e.bgColor;return`${O2} - + `},Qc=e=>{let t=e.fgColor,i=e.bgColor;return`${P2} + -`},wB=e=>{let t=e.fgColor,l=e.bgColor;return` - ${O2} - +`},Jc=e=>{let t=e.fgColor,i=e.bgColor;return` + ${P2} + - `},gB=e=>{let t=e.fgColor,l=e.bgColor;return`${O2} - + `},em=e=>{let t=e.fgColor,i=e.bgColor;return`${P2} + -`},uB=e=>{let t=e.fgColor,l=e.bgColor;return` - ${O2} - - +`},tm=e=>{let t=e.fgColor,i=e.bgColor;return` + ${P2} + + - `},dB=e=>{let t=e.fgColor,l=e.bgColor;return`${O2} + `},im=e=>{let t=e.fgColor,i=e.bgColor;return`${P2} - -`},HB=e=>{let t=e.fgColor,l=e.bgColor;return` - ${O2} - + +`},lm=e=>{let t=e.fgColor,i=e.bgColor;return` + ${P2} + - `},LB=e=>{let t=e.fgColor,l=e.bgColor;return` - ${O2} - + `},rm=e=>{let t=e.fgColor,i=e.bgColor;return` + ${P2} + - `},VB=e=>{let t=e.fgColor,l=e.bgColor;return`${O2} - + `},sm=e=>{let t=e.fgColor,i=e.bgColor;return`${P2} + -`},vB=e=>{let t=e.fgColor,l=e.bgColor;return`${O2} - +`},am=e=>{let t=e.fgColor,i=e.bgColor;return`${P2} + -`},pB=e=>{let t=e.fgColor,l=e.bgColor;return` - ${O2} - +`},om=e=>{let t=e.fgColor,i=e.bgColor;return` + ${P2} + - `},fB=e=>{let t=e.fgColor,l=e.bgColor;return`${O2} - + `},nm=e=>{let t=e.fgColor,i=e.bgColor;return`${P2} + -`},xB=e=>{let t=e.fgColor,l=e.bgColor;return` - ${O2} - +`},Cm=e=>{let t=e.fgColor,i=e.bgColor;return` + ${P2} + - `},MB=e=>{let t=e.fgColor,l=e.bgColor;return`${O2} - + `},cm=e=>{let t=e.fgColor,i=e.bgColor;return`${P2} + -`},ZB=e=>{let t=e.fgColor,l=e.bgColor;return`${O2} - +`},mm=e=>{let t=e.fgColor,i=e.bgColor;return`${P2} + -`},EB=e=>{let t=e.fgColor;return` +`},hm=e=>{let t=e.fgColor;return` - `},NB=e=>{let t=e.fgColor;return` + `},wm=e=>{let t=e.fgColor;return` -`},RB={headerRowID:eB,headerNumber:lB,headerCode:tB,headerString:rB,headerBoolean:iB,headerAudioUri:oB,headerVideoUri:aB,headerEmoji:nB,headerImage:cB,headerUri:xd,headerPhone:CB,headerMarkdown:mB,headerDate:hB,headerTime:wB,headerEmail:gB,headerReference:uB,headerIfThenElse:dB,headerSingleValue:HB,headerLookup:LB,headerTextTemplate:VB,headerMath:vB,headerRollup:pB,headerJoinStrings:fB,headerSplitString:xB,headerGeoDistance:MB,headerArray:ZB,rowOwnerOverlay:EB,protectedColumnOverlay:NB,renameIcon:sB};function zB(e,t){return e==="normal"?[t.bgIconHeader,t.fgIconHeader]:e==="selected"?["white",t.accentColor]:[t.accentColor,t.bgHeader]}var yB=class{constructor(e,t){this.spriteMap=new Map,this.inFlight=0,this.onSettled=t,this.headerIcons=S(S({},RB),e)}drawSprite(e,t,l,r,i,s,o,a=1){let[n,c]=zB(t,o),C=s*Math.ceil(window.devicePixelRatio),m=`${n}_${c}_${C}_${e}`,h=this.spriteMap.get(m);if(h===void 0){let u=this.headerIcons[e];if(u===void 0)return;h=document.createElement("canvas");let d=h.getContext("2d");if(d===null)return;let H=new Image;H.src=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(u({fgColor:c,bgColor:n}))}`,this.spriteMap.set(m,h);let f=H.decode();if(f===void 0)return;this.inFlight++,f.then(()=>{d.drawImage(H,0,0,C,C)}).finally(()=>{this.inFlight--,this.inFlight===0&&this.onSettled()})}else a<1&&(l.globalAlpha=a),l.drawImage(h,0,0,C,C,r,i,s,s),a<1&&(l.globalAlpha=1)}},Gi={},w9=null;function BB(){let e=document.createElement("div");return e.style.opacity="0",e.style.pointerEvents="none",e.style.position="fixed",document.body.append(e),e}function ls(e){let t=e.toLowerCase().trim();if(Gi[t]!==void 0)return Gi[t];w9=w9||BB(),w9.style.color="#000",w9.style.color=t;let l=getComputedStyle(w9).color;w9.style.color="#fff",w9.style.color=t;let r=getComputedStyle(w9).color;if(r!==l)return[0,0,0,1];let i=r.replace(/[^\d.,]/g,"").split(",").map(Number.parseFloat);return i.length<4&&i.push(1),i=i.map(s=>{let o=Number.isNaN(s);return o&&console.warn("Could not parse color",e),o?0:s}),Gi[t]=i,i}function J7(e,t){let[l,r,i]=ls(e);return`rgba(${l}, ${r}, ${i}, ${t})`}function d9(e,t){if(t===void 0)return e;let[l,r,i,s]=ls(e);if(s===1)return e;let[o,a,n,c]=ls(t),C=s+c*(1-s),m=(s*l+c*o*(1-s))/C,h=(s*r+c*a*(1-s))/C,u=(s*i+c*n*(1-s))/C;return`rgba(${m}, ${h}, ${u}, ${C})`}var SB={kind:m1.Loading,allowOverlay:!1};function Ed(e,t,l,r,i,s,o,a,n,c,C,m,h,u,d,H,f,w,g,L){let v,M;d!==void 0&&d[0][0]===r&&d[0][1]===t&&(v=d[1][0],M=d[1][1]);let E,p={ctx:e,theme:c,col:r,row:t,cell:l,rect:{x:i,y:s,width:o,height:a},highlighted:n,hoverAmount:u,hoverX:v,hoverY:M,imageLoader:m,spriteManager:h,hyperWrapping:H,requestAnimationFrame:()=>{x=!0}},x=!1;return(Ay(p,l.lastUpdated,f,w,()=>{var N,F;if(!(u9(l)?!1:(C==null?void 0:C(p))===!0)){let B=L(l);if(B!==void 0){(w==null?void 0:w.renderer)!==B&&((N=w==null?void 0:w.deprep)==null||N.call(w,p),w=void 0);let U=(F=B.drawPrep)==null?void 0:F.call(B,p,w);B.draw(p,l),E={deprep:U==null?void 0:U.deprep,fillStyle:U==null?void 0:U.fillStyle,font:U==null?void 0:U.font,renderer:B}}}})||x)&&(g==null||g([r,t])),E}function FB(e,t,l,r,i,s,o,a,n,c,C,m,h,u,d,H,f){let w=[],g=!1;e.imageSmoothingEnabled=!1;let L=Math.min(l.cellYOffset,i),v=Math.max(l.cellYOffset,i),M=0;if(typeof H=="number")M+=(v-L)*H;else for(let B=L;Bl.cellYOffset&&(M=-M),M+=o-l.translateY;let E=Math.min(l.cellXOffset,r),p=Math.max(l.cellXOffset,r),x=0;for(let B=E;Bl.cellXOffset&&(x=-x),x+=s-l.translateX;let Z=Q7(d);if(Z>0&&Z++,x!==0&&M!==0)return{regions:[],yOnly:!1};let N=a?typeof H=="number"?H:H(C-1):0,F=n-Z-Math.abs(x),b=c-m-N-Math.abs(M)-1;if(F>150&&b>150){g=x===0;let B={sx:0,sy:0,sw:n*h,sh:c*h,dx:0,dy:0,dw:n*h,dh:c*h};M>0?(B.sy=(m+1)*h,B.sh=b*h,B.dy=(M+m+1)*h,B.dh=b*h,w.push({x:0,y:m,width:n,height:M+1})):M<0&&(B.sy=(-M+m+1)*h,B.sh=b*h,B.dy=(m+1)*h,B.dh=b*h,w.push({x:0,y:c+M-N,width:n,height:-M+N})),x>0?(B.sx=Z*h,B.sw=F*h,B.dx=(x+Z)*h,B.dw=F*h,w.push({x:Z-1,y:0,width:x+2,height:c})):x<0&&(B.sx=(Z-x)*h,B.sw=F*h,B.dx=Z*h,B.dw=F*h,w.push({x:n+x,y:0,width:-x,height:c})),e.setTransform(1,0,0,1,0,0),Z>0&&x!==0&&M===0&&f&&e.drawImage(t,0,0,Z*h,c*h,0,0,Z*h,c*h),e.drawImage(t,B.sx,B.sy,B.sw,B.sh,B.dx,B.dy,B.dw,B.dh),e.scale(h,h)}return e.imageSmoothingEnabled=!0,{regions:w,yOnly:g}}function kB(e,t,l,r,i,s,o,a,n,c){let C=[];return t!==e.cellXOffset||l!==e.cellYOffset||r!==e.translateX||i!==e.translateY||Q9(n,l,r,i,a,(m,h,u,d)=>{if(m.sourceIndex===c){let H=Math.max(h,d)+1;return C.push({x:H,y:0,width:s-H,height:o}),!0}}),C}function Fu(e,t,l,r,i,s,o,a,n,c,C,m,h,u,d,H,f,w=!1){var g,L,v;if(n!==void 0){e.beginPath(),e.save(),e.rect(0,0,s,o);for(let J of n)e.rect(J.x+1,J.y+1,J.width-1,J.height-1);e.clip("evenodd")}let M=(g=f.horizontalBorderColor)!=null?g:f.borderColor,E=f.borderColor,p=0,x=s,Z=0,N=o;if(a!==void 0&&a.length>0){p=Number.MAX_SAFE_INTEGER,Z=Number.MAX_SAFE_INTEGER,x=Number.MIN_SAFE_INTEGER,N=Number.MIN_SAFE_INTEGER;for(let J of a)p=Math.min(p,J.x-1),x=Math.max(x,J.x+J.width+1),Z=Math.min(Z,J.y-1),N=Math.max(N,J.y+J.height+1)}let F=[];e.beginPath();let b=.5;for(let J=0;J=p&&O<=x&&u(J+1)&&F.push({x1:O,y1:Math.max(c,Z),x2:O,y2:Math.min(o,N),color:E})}let B=m(H-1),U=o-B+.5,g1=d==="sticky";if(g1&&F.push({x1:p,y1:U,x2:x,y2:U,color:M}),w!==!0){let J=C+.5,n1=l,O=g1?o-B:o;for(;J+i<=O;){let a1=J+i;if(a1>=Z&&a1<=N-1&&(!g1||n1!==H-1||Math.abs(a1-U)>1)){let q=h==null?void 0:h(n1);F.push({x1:p,y1:a1,x2:x,y2:a1,color:(v=(L=q==null?void 0:q.horizontalBorderColor)!=null?L:q==null?void 0:q.borderColor)!=null?v:M})}J+=m(n1),n1++}}let h1=(0,Zd.default)(F,J=>J.color);for(let J of Object.keys(h1)){e.strokeStyle=J;for(let n1 of h1[J])e.moveTo(n1.x1,n1.y1),e.lineTo(n1.x2,n1.y2);e.stroke(),e.beginPath()}n!==void 0&&e.restore()}function Nd(e,t){let l=[],r=e.x+e.width-26*t.length,i=e.y+e.height/2-13,s=26,o=26;for(let a=0;a=e.x&&t<=e.x+e.width&&l>=e.y&&l<=e.y+e.height}function bB(e,t,l,r,i,s,o,a,n,c,C,m){var h;let[d,H]=(h=s==null?void 0:s[0])!=null?h:[],f=0;Sd(t,l,r,i,(w,g,L,v,M,E)=>{var p,x;if(m!==void 0&&!m.some(B=>B[1]===-2&&B[0]>=w[0]&&B[0]<=w[1]))return;e.save(),e.beginPath(),e.rect(L,v,M,E),e.clip();let Z=C(g),N=(Z==null?void 0:Z.overrideTheme)===void 0?o:S(S({},o),Z.overrideTheme),F=H===-2&&d!==void 0&&d>=w[0]&&d<=w[1],b=F?N.bgHeaderHovered:N.bgHeader;if(b!==o.bgHeader&&(e.fillStyle=b,e.fill()),e.fillStyle=(p=N.textGroupHeader)!=null?p:N.textHeader,Z!==void 0){let B=L;if(Z.icon!==void 0&&(a.drawSprite(Z.icon,"normal",e,B+8,(i-20)/2,20,N),B+=26),e.fillText(Z.name,B+8,i/2+b5(e,`${o.headerFontStyle} ${o.fontFamily}`)),Z.actions!==void 0&&F){let U=Nd({x:L,y:v,width:M,height:E},Z.actions);e.beginPath();let g1=U[0].x-10,h1=L+M-g1;e.rect(g1,0,h1,i);let J=e.createLinearGradient(g1,0,g1+h1,0),n1=J7(b,0);J.addColorStop(0,n1),J.addColorStop(10/h1,b),J.addColorStop(1,b),e.fillStyle=J,e.fill(),e.globalAlpha=.6;let[O,a1]=(x=s==null?void 0:s[1])!=null?x:[-1,-1];for(let q=0;q35){let p=H?35:r-35,x=H?35*.7:r-35*.7,Z=p/r,N=x/r,F=e.createLinearGradient(t,0,t+r,0),b=J7(g,0);F.addColorStop(H?1:0,g),F.addColorStop(Z,g),F.addColorStop(N,b),F.addColorStop(H?0:1,b),e.fillStyle=F}else e.fillStyle=g;if(H&&(e.textAlign="right"),e.fillText(s.title,M,l+i/2+b5(e,`${a.headerFontStyle} ${a.fontFamily}`)),H&&(e.textAlign="left"),L&&s.hasMenu===!0){e.beginPath();let E=f.x+f.width/2-5.5,p=f.y+f.height/2-3;Jy(e,[{x:E,y:p},{x:E+11,y:p},{x:E+5.5,y:p+6}],1),e.fillStyle=g,e.fill()}}function _B(e,t,l,r,i,s,o,a,n,c,C,m,h,u,d,H,f,w,g){var L;let v=o+a;if(v<=0)return;e.fillStyle=m.bgHeader,e.fillRect(0,0,i,v);let[M,E]=(L=r==null?void 0:r[0])!=null?L:[],p=`${m.headerFontStyle} ${m.fontFamily}`;e.font=p,Q9(t,0,s,0,v,(x,Z,N,F)=>{var b,B,U;if(f!==void 0&&!f.some(e2=>e2[1]===-1&&e2[0]===x.sourceIndex))return;let g1=Math.max(0,F-Z);e.save(),e.beginPath(),e.rect(Z+g1,a,x.width-g1,o),e.clip();let h1=H((b=x.group)!=null?b:"").overrideTheme,J=x.themeOverride===void 0&&h1===void 0?m:S(S(S({},m),h1),x.themeOverride);J.bgHeader!==m.bgHeader&&(e.fillStyle=J.bgHeader,e.fill());let n1=`${J.headerFontStyle} ${J.fontFamily}`;p!==n1&&(e.font=n1);let O=C.columns.hasIndex(x.sourceIndex),a1=n!==void 0||c,q=!a1&&E===-1&&M===x.sourceIndex,E1=a1?0:(U=(B=u.find(e2=>e2.item[0]===x.sourceIndex&&e2.item[1]===-1))==null?void 0:B.hoverAmount)!=null?U:0,c1=(C==null?void 0:C.current)!==void 0&&C.current.cell[0]===x.sourceIndex,r1=O?J.accentColor:c1?J.bgHeaderHasFocus:J.bgHeader,d1=l?a:0,T1=x.sourceIndex===0?0:1;O?(e.fillStyle=r1,e.fillRect(Z+T1,d1,x.width-T1,o)):(c1||E1>0)&&(e.beginPath(),e.rect(Z+T1,d1,x.width-T1,o),c1&&(e.fillStyle=J.bgHeaderHasFocus,e.fill()),E1>0&&(e.globalAlpha=E1,e.fillStyle=J.bgHeaderHovered,e.fill(),e.globalAlpha=1)),yd(e,Z,d1,x.width,o,x,O,J,q,c1,E1,h,w,g),e.restore()}),l&&bB(e,t,i,s,a,r,m,h,u,d,H,f)}function L9(e,t,l,r,i,s,o,a){return e<=i+o&&i<=e+l&&t<=s+a&&s<=t+r}function ku(e,t,l,r,i,s,o,a,n,c,C,m,h,u){if(h===void 0||h.length===0)return;let d=m==="sticky"?C(c-1):0;e.beginPath(),Sd(t,l,o,i,(H,f,w,g,L,v)=>{for(let M=0;M=H[0]&&E[0]<=H[1]){e.rect(w,g,L,v);break}}}),Q9(t,n,o,a,s,(H,f,w,g,L)=>{let v=Math.max(0,g-f),M=f+v+1,E=H.width-v-1;for(let p=0;p{let F=!1;for(let b=0;b0&&e.rect(M,b,E,U)}})}),e.clip()}function Bd(e,t,l,r,i,s,o){var a,n;let[c,C]=e,m,h,u=(n=(a=o.find(d=>!d.sticky))==null?void 0:a.sourceIndex)!=null?n:0;if(C>u){let d=Math.max(c,u),H=t,f=r;for(let w=s.sourceIndex-1;w>=d;w--)H-=o[w].width,f+=o[w].width;for(let w=s.sourceIndex+1;w<=C;w++)f+=o[w].width;h={x:H,y:l,width:f,height:i}}if(u>c){let d=Math.min(C,u-1),H=t,f=r;for(let w=s.sourceIndex-1;w>=c;w--)H-=o[w].width,f+=o[w].width;for(let w=s.sourceIndex+1;w<=d;w++)f+=o[w].width;m={x:H,y:l,width:f,height:i}}return[m,h]}function bu(e,t,l,r,i,s,o,a,n,c,C,m,h,u,d,H,f,w,g,L,v,M,E,p,x,Z,N,F,b,B,U){var g1;let h1=(g1=g==null?void 0:g.length)!=null?g1:Number.MAX_SAFE_INTEGER,J=performance.now(),n1=`${b.baseFontStyle} ${b.fontFamily}`;e.font=n1;let O,a1=new Set;return Q9(t,a,s,o,i,(q,E1,c1,r1,d1)=>{var T1;let e2=Math.max(0,r1-E1),U1=E1+e2,P2=i+1,O1=q.width-e2,t2=r-i-1;if(w.length>0){let H1=!1;for(let A=0;A{e.save(),e.beginPath(),e.rect(U1,P2,O1,t2),e.clip()},p1=L.columns.hasIndex(q.sourceIndex),i2=m((T1=q.group)!=null?T1:"").overrideTheme,I1=q.themeOverride===void 0&&i2===void 0?b:S(S(S({},b),i2),q.themeOverride),_1=`${I1.baseFontStyle} ${I1.fontFamily}`;_1!==n1&&(n1=_1,e.font=_1),X1();let s1;return _e(d1,c1,r,n,c,f,(H1,A,D,k1,D1)=>{var n2,N1,g2,Y1;if(A<0)return;if(g!==void 0){let V2=!1;for(let j2=0;j20){let V2=!1;for(let j2=0;j2u2.span!==void 0&&V2>=u2.span[0]&&V2<=u2.span[1]);L2&&!d&&H?B0=0:L2&&(B0=Math.max(B0,1)),H0&&B0++,L2||(Q1&&B0++,p1&&!k1&&B0++);let L0=u2.kind===m1.Protected?q1.bgCellMedium:q1.bgCell,W2;if((k1||L0!==b.bgCell)&&(W2=d9(L0,W2)),B0>0||C2){C2&&(W2=d9(q1.bgHeader,W2));for(let V2=0;V2V2[0]===q.sourceIndex&&V2[1]===A))===!0&&(W2=d9(q1.bgSearchResult,W2));if(M!==void 0)for(let V2 of M){let j2=V2.range;j2.x<=q.sourceIndex&&q.sourceIndexV2.item[0]===q.sourceIndex&&V2.item[1]===A);if(o1>10&&!f1){let V2=`${q1.baseFontStyle} ${q1.fontFamily}`;V2!==n1&&(e.font=V2,n1=V2),s1=Ed(e,A,u2,q.sourceIndex,s2,H1,o1,D,B0>0,q1,E,p,x,(g2=g5==null?void 0:g5.hoverAmount)!=null?g2:0,N,F,J,s1,B,U)}return u2.style==="faded"&&(e.globalAlpha=1),h1--,L1&&(e.restore(),(Y1=s1==null?void 0:s1.deprep)==null||Y1.call(s1,{ctx:e}),s1=void 0,X1(),n1=_1,e.font=_1),h1<=0}),e.restore(),h1<=0}),O}function PB(e,t,l,r,i,s,o,a,n,c,C,m,h,u,d,H,f,w){f!==void 0||t[t.length-1]!==l[t.length-1]||Q9(t,n,o,a,s,(g,L,v,M,E)=>{if(g!==t[t.length-1])return;L+=g.width;let p=Math.max(L,M);p>r||(e.save(),e.beginPath(),e.rect(p,s+1,1e4,i-s-1),e.clip(),_e(E,v,i,c,C,d,(x,Z,N,F)=>{if(!F&&H.length>0&&!H.some(h1=>L9(L,x,1e4,N,h1.x,h1.y,h1.width,h1.height)))return;let b=h.hasIndex(Z),B=u.hasIndex(Z);e.beginPath();let U=m==null?void 0:m(Z),g1=U===void 0?w:S(S({},w),U);g1.bgCell!==w.bgCell&&(e.fillStyle=g1.bgCell,e.fillRect(L,x,1e4,N)),B&&(e.fillStyle=g1.bgHeader,e.fillRect(L,x,1e4,N)),b&&(e.fillStyle=g1.accentLight,e.fillRect(L,x,1e4,N))}),e.restore())})}function TB(e,t,l,r,i,s,o,a,n){var c;let C=!1;for(let d of t)if(!d.sticky){C=o(d.sourceIndex);break}let m=(c=n.horizontalBorderColor)!=null?c:n.borderColor,h=n.borderColor,u=C?Q7(t):0;if(u!==0&&(e.beginPath(),e.moveTo(u+.5,0),e.lineTo(u+.5,r),e.strokeStyle=d9(h,n.bgCell),e.stroke()),i){let d=a(s-1);e.beginPath(),e.moveTo(0,r-d+.5),e.lineTo(l,r-d+.5),e.strokeStyle=d9(m,n.bgCell),e.stroke()}}function DB(e,t,l,r,i,s,o,a,n,c,C,m,h,u,d){let H=d==null?void 0:d.filter(L=>L.style!=="no-outline");if(H===void 0||H.length===0)return;let f=H.map(L=>{var v,M,E,p,x;let Z=L.range,N=Re(Z.x,Z.y,t,l,C,c+C,r,i,s,o,u,n,h,a,m);if(Z.width===1&&Z.height===1)return Z.x=n){let b=Re(n-1,Z.y+Z.height-1,t,l,C,c+C,r,i,s,o,u,n,h,a,m),B=Re(n,Z.y+Z.height-1,t,l,C,c+C,r,i,s,o,u,n,h,a,m);return[{color:L.color,style:(E=L.style)!=null?E:"dashed",rect:{x:N.x,y:N.y,width:b.x+b.width-N.x,height:b.y+b.height-N.y}},{color:L.color,style:(p=L.style)!=null?p:"dashed",rect:{x:B.x,y:B.y,width:F.x+F.width-B.x,height:F.y+F.height-B.y}}]}else return[void 0,{color:L.color,style:(x=L.style)!=null?x:"dashed",rect:{x:N.x,y:N.y,width:F.x+F.width-N.x,height:F.y+F.height-N.y}}]}),w=Q7(a),g=()=>{e.beginPath(),e.save();let L=!1,v=E=>{L!==E&&(e.setLineDash(E?[5,3]:[]),L=E)};e.lineWidth=1;for(let E of f){let[p]=E;p!==void 0&&L9(0,0,t,l,p.rect.x,p.rect.y,p.rect.width,p.rect.height)&&(v(p.style==="dashed"),e.strokeStyle=J7(p.color,1),e.strokeRect(p.rect.x+1,p.rect.y+1,p.rect.width-2,p.rect.height-2))}let M=!1;for(let E of f){let[,p]=E;p!==void 0&&L9(0,0,t,l,p.rect.x,p.rect.y,p.rect.width,p.rect.height)&&(v(p.style==="dashed"),!M&&p.rect.x{var N;return Z.sourceIndex===((N=C.current)==null?void 0:N.cell[0])}))return;let[w,g]=C.current.cell,L=h(C.current.cell),v=(f=L.span)!=null?f:[w,w],M=u==="sticky"&&g===H-1,E=u==="sticky"&&!M?m(H-1)-1:0,p;if(Q9(o,r,i,s,c,(Z,N,F,b,B)=>{if(!(Z.sticky&&w>Z.sourceIndex)&&!(Z.sourceIndexv[1]))return _e(B,F,l,H,m,u,(U,g1,h1)=>{if(g1!==g)return;let J=N,n1=Z.width;if(L.span!==void 0){let O=Bd(L.span,N,U,Z.width,h1,Z,a),a1=Z.sticky?O[0]:O[1];a1!==void 0&&(J=a1.x,n1=a1.width)}return p=()=>{var O,a1,q,E1;b>J&&!Z.sticky&&(e.beginPath(),e.rect(b,0,t-b,l),e.clip()),e.beginPath(),e.rect(J+.5,U+.5,n1,h1),e.strokeStyle=(a1=(O=Z.themeOverride)==null?void 0:O.accentColor)!=null?a1:n.accentColor,e.lineWidth=1,e.stroke(),d&&(e.beginPath(),e.rect(J+n1-4,U+h1-4,4,4),e.fillStyle=(E1=(q=Z.themeOverride)==null?void 0:q.accentColor)!=null?E1:n.accentColor,e.fill())},!0}),!0}),p===void 0)return;let x=()=>{e.save(),e.beginPath(),e.rect(0,c,t,l-c-E),e.clip(),p==null||p(),e.restore()};return x(),x}function IB(e,t,l,r,i,s,o,a,n){let c=0;return Q9(e,s,r,i,l,(C,m,h,u,d)=>(_e(d,h,t,o,a,n,(H,f,w,g)=>{g||(c=Math.max(f,c))}),!0)),c}function OB(e,t){if(t===void 0||e.width!==t.width||e.height!==t.height||e.theme!==t.theme||e.headerHeight!==t.headerHeight||e.rowHeight!==t.rowHeight||e.rows!==t.rows||e.getRowThemeOverride!==t.getRowThemeOverride||e.isFocused!==t.isFocused||e.isResizing!==t.isResizing||e.verticalBorder!==t.verticalBorder||e.getCellContent!==t.getCellContent||e.highlightRegions!==t.highlightRegions||e.selection!==t.selection||e.dragAndDropState!==t.dragAndDropState||e.prelightCells!==t.prelightCells||e.touchMode!==t.touchMode||e.scrolling!==t.scrolling)return!1;if(e.mappedColumns!==t.mappedColumns){if(e.mappedColumns.length>100||e.mappedColumns.length!==t.mappedColumns.length)return!1;let i;for(let s=0;sM:M;D1.save(),D1.beginPath(),N1.save(),N1.beginPath(),D1.textBaseline="middle",N1.textBaseline="middle",I1!==1&&(D1.scale(I1,I1),N1.scale(I1,I1));let Q1=es(h,n,o,H,C),C2=[],u2=w&&((r=x.current)==null?void 0:r.cell[1])===c&&m===0,s2=()=>{var z1,q1;_B(D1,Q1,u,r1,o,C,g,L,H,p,x,f,d1,E1,E,B,p1,J,e2),Fu(D1,Q1,c,C,m,o,a,void 0,void 0,L,H1,Y1,U,E,N,F,f,!0),D1.beginPath(),D1.moveTo(0,A-.5),D1.lineTo(o,A-.5),D1.strokeStyle=d9((q1=(z1=f.headerBottomBorderColor)!=null?z1:f.horizontalBorderColor)!=null?q1:f.borderColor,f.bgHeader),D1.stroke(),u2&&Ki(D1,o,a,c,C,m,Q1,h,f,H1,x,Y1,b,N,Z,F)};if(p1!==void 0){let z1=!1;p1=p1.filter(q1=>(z1=z1||q1[1]<0,q1[1]<0||L9(n,c,Q1.length,300,q1[0],q1[1],1,1)||L9(0,c,d,300,q1[0],q1[1],1,1)||N&&L9(n,F-1,Q1.length,1,q1[0],q1[1],1,1))),p1.length>0&&(ku(N1,Q1,o,a,L,H1,C,m,c,F,Y1,N,p1,!0),N1.fillStyle=f.bgCell,N1.fillRect(0,H1+1,o,a-H1-1),bu(N1,Q1,h,a,H1,C,m,c,F,Y1,b,B,U,v,g1,w,N,C2,p1,x,n1,O,h1,a1,d1,E1,r1,c1,f,U1,P2),Z&&w&&x.current!==void 0&&p1.some(q1=>{var A2,L2;return q1[0]===((A2=x.current)==null?void 0:A2.cell[0])&&q1[1]===((L2=x.current)==null?void 0:L2.cell[1])})&&Ki(N1,o,a,c,C,m,Q1,h,f,H1,x,Y1,b,N,Z,F)),z1&&(ku(D1,Q1,o,H1,L,H1,C,m,c,F,Y1,N,p1,!1),s2()),N1.restore(),D1.restore(),k1!==null&&(k1.fillStyle=f.bgCell,k1.fillRect(0,0,o,a),k1.drawImage(N1.canvas,0,0));return}if((_1!==!0||n!==(D==null?void 0:D.cellXOffset)||C!==(D==null?void 0:D.translateX)||u2!==(D==null?void 0:D.mustDrawFocusOnHeader))&&s2(),_1===!0){n4(g2!==void 0&&D!==void 0);let{regions:z1}=FB(N1,g2,D,n,c,C,m,N==="sticky",o,a,F,H1,I1,h,Q1,M,i2);C2=z1}else _1!==!1&&(n4(D!==void 0),C2=kB(D,n,c,C,m,o,a,H1,Q1,_1));TB(N1,Q1,o,a,N==="sticky",F,E,Y1,f);let o1=w?Ki(N1,o,a,c,C,m,Q1,h,f,H1,x,Y1,b,N,Z,F):void 0,L1=DB(N1,o,a,n,c,C,m,h,d,g,L,M,N==="sticky",F,O);if(N1.fillStyle=f.bgCell,C2.length>0){N1.beginPath();for(let z1 of C2)N1.rect(z1.x,z1.y,z1.width,z1.height);N1.clip(),N1.fill(),N1.beginPath()}else N1.fillRect(0,0,o,a);let f1=bu(N1,Q1,h,a,H1,C,m,c,F,Y1,b,B,U,v,g1,w,N,C2,p1,x,n1,O,h1,a1,d1,E1,r1,c1,f,U1,P2);PB(N1,Q1,h,o,a,H1,C,m,c,F,Y1,U,x.rows,v,N,C2,p1,f),Fu(N1,Q1,c,C,m,o,a,C2,f1,L,H1,Y1,U,E,N,F,f),o1==null||o1(),L1==null||L1(),k1!==null&&(k1.fillStyle=f.bgCell,k1.fillRect(0,0,o,a),k1.drawImage(N1.canvas,0,0));let x1=IB(Q1,a,H1,C,m,c,F,Y1,N);a1==null||a1.setWindow({x:n,y:c,width:Q1.length,height:x1-c},d),q.current={cellXOffset:n,cellYOffset:c,translateX:C,translateY:m,mustDrawFocusOnHeader:u2,lastBuffer:i2?n2===t2?"a":"b":void 0},N1.restore(),D1.restore()}function _e(e,t,l,r,i,s,o){let a=t,n=e,c=s==="sticky";for(;a=l;C&&(c=!1,n=r-1);let m=i(n);if(C&&(a=l-m),!(c&&n===r-1)&&o(a,n,m,C,s!=="none"&&n===r-1)===!0||C)break;a+=m,n++}}function Q9(e,t,l,r,i,s){let o=0,a=0,n=i+r;for(let c of e){let C=c.sticky?a:o+l;if(s(c,C,n,a,t)===!0)break;o+=c.width,a+=c.sticky?c.width:0}}function Sd(e,t,l,r,i){var s;let o=0,a=0;for(let n=0;n(t==null?void 0:t[0])===(l==null?void 0:l[0])&&(t==null?void 0:t[1])===(l==null?void 0:l[1]),this.addToLeavingItems=t=>{this.leavingItems.some(r=>this.areSameItems(r.item,t.item))||this.leavingItems.push(t)},this.removeFromLeavingItems=t=>{var l;let r=this.leavingItems.find(i=>this.areSameItems(i.item,t));return this.leavingItems=this.leavingItems.filter(i=>i!==r),(l=r==null?void 0:r.hoverAmount)!=null?l:0},this.cleanUpLeavingElements=()=>{this.leavingItems=this.leavingItems.filter(t=>t.hoverAmount>0)},this.shouldStep=()=>{let t=this.leavingItems.length>0,l=this.currentHoveredItem!==void 0&&this.currentHoveredItem.hoverAmount<1;return t||l},this.getAnimatingItems=()=>this.currentHoveredItem!==void 0?[...this.leavingItems,this.currentHoveredItem]:this.leavingItems.map(t=>j(S({},t),{hoverAmount:WB(t.hoverAmount)})),this.step=t=>{if(this.lastAnimationTime===void 0)this.lastAnimationTime=t;else{let r=(t-this.lastAnimationTime)/AB;for(let s of this.leavingItems)s.hoverAmount=(0,rs.default)(s.hoverAmount-r,0,1);this.currentHoveredItem!==void 0&&(this.currentHoveredItem.hoverAmount=(0,rs.default)(this.currentHoveredItem.hoverAmount+r,0,1));let i=this.getAnimatingItems();this.callback(i),this.cleanUpLeavingElements()}this.shouldStep()?(this.lastAnimationTime=t,window.requestAnimationFrame(this.step)):this.lastAnimationTime=void 0},this.setHovered=t=>{var l;if(!this.areSameItems((l=this.currentHoveredItem)==null?void 0:l.item,t)){if(this.currentHoveredItem!==void 0&&this.addToLeavingItems(this.currentHoveredItem),t!==void 0){let r=this.removeFromLeavingItems(t);this.currentHoveredItem={item:t,hoverAmount:r}}else this.currentHoveredItem=void 0;this.lastAnimationTime===void 0&&window.requestAnimationFrame(this.step)}},this.callback=e}},UB=class{constructor(e){this.fn=e}get value(){var e;return(e=this.val)!=null?e:this.val=this.fn()}};function gs(e){return new UB(e)}var qB=gs(()=>window.navigator.userAgent.includes("Firefox")),Fd=gs(()=>window.navigator.userAgent.includes("Mac OS")&&window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome")),ct=gs(()=>window.navigator.platform.toLowerCase().startsWith("mac"));function jB(e,t){for(let l of e)if(l[0]===t[0]&&l[1]===t[1])return!0;return!1}function GB(e){let t=X9.useRef([]),l=X9.useRef(0),r=X9.useRef(e);r.current=e;let i=X9.useCallback(()=>{let s=()=>window.requestAnimationFrame(o),o=()=>{let a=t.current;t.current=[],r.current(a),t.current.length>0?l.current++:l.current=0};window.requestAnimationFrame(l.current>600?s:o)},[]);return X9.useCallback(s=>{jB(t.current,s)||(t.current.length===0&&i(),t.current.push(s))},[i])}var KB=(e,t)=>{var l;if(e.kind===m1.Custom)return e.copyData;let r=t==null?void 0:t(e);return(l=r==null?void 0:r.getAccessibilityString(e))!=null?l:""},XB=(e,t)=>{var l,r,i,s,o,a,n,c;let{width:C,height:m,accessibilityHeight:h,columns:u,cellXOffset:d,cellYOffset:H,headerHeight:f,fillHandle:w=!1,groupHeaderHeight:g,rowHeight:L,rows:v,getCellContent:M,getRowThemeOverride:E,onHeaderMenuClick:p,enableGroups:x,isFilling:Z,onCanvasFocused:N,onCanvasBlur:F,isFocused:b,selection:B,freezeColumns:U,onContextMenu:g1,trailingRowType:h1,fixedShadowX:J=!0,fixedShadowY:n1=!0,drawFocusRing:O=!0,onMouseDown:a1,onMouseUp:q,onMouseMoveRaw:E1,onMouseMove:c1,onItemHovered:r1,dragAndDropState:d1,firstColAccessible:T1,onKeyDown:e2,onKeyUp:U1,highlightRegions:P2,canvasRef:O1,onDragStart:t2,onDragEnd:X1,eventTargetRef:p1,isResizing:i2,isDragging:I1,isDraggable:_1=!1,allowResize:s1,disabledRows:H1,getGroupDetails:A,theme:D,prelightCells:k1,headerIcons:D1,verticalBorder:n2,drawHeader:N1,drawCustomCell:g2,onCellFocused:Y1,onDragOverCell:Q1,onDrop:C2,onDragLeave:u2,imageWindowLoader:s2,smoothScrollX:o1=!1,smoothScrollY:L1=!1,experimental:f1,getCellRenderer:x1}=e,z1=(l=e.translateX)!=null?l:0,q1=(r=e.translateY)!=null?r:0,A2=Math.max(U,Math.min(u.length-1,d)),L2=t1.useRef(null),B0=t1.useMemo(()=>new Ey,[]),H0=s2!=null?s2:B0,L0=t1.useRef(),[W2,g5]=t1.useState(!1),V2=t1.useRef([]),j2=t1.useRef(),[C0,R2]=t1.useState(),[i0,V0]=t1.useState(),r5=t1.useRef(null),[m4,_5]=t1.useState(!1),Z4=t1.useRef(m4);Z4.current=m4;let S0=t1.useMemo(()=>new yB(D1,()=>{i5.current=void 0,x9.current()}),[D1]),X0=x?g+f:f,h4=t1.useRef(-1),T4=(f1==null?void 0:f1.enableFirefoxRescaling)!==!0;t1.useLayoutEffect(()=>{!qB.value||window.devicePixelRatio===1||T4||(h4.current!==-1&&g5(!0),window.clearTimeout(h4.current),h4.current=window.setTimeout(()=>{g5(!1),h4.current=-1},200))},[H,A2,z1,q1,T4]);let s0=Fy(u,U),v2=t1.useCallback((z,G,B1)=>{let C1=z.getBoundingClientRect();if(G>=s0.length||B1>=v)return;let S1=C1.width/C,l1=Re(G,B1,C,m,g,X0,A2,H,z1,q1,v,U,h1==="sticky",s0,L);return S1!==1&&(l1.x*=S1,l1.y*=S1,l1.width*=S1,l1.height*=S1),l1.x+=C1.x,l1.y+=C1.y,l1},[C,m,g,X0,A2,H,z1,q1,v,U,h1,s0,L]),X2=t1.useCallback((z,G,B1,C1)=>{var S1,l1;let $1=z.getBoundingClientRect(),p2=$1.width/C,M1=(G-$1.left)/p2,Z1=(B1-$1.top)/p2,w0=5,d2=es(s0,A2,C,void 0,z1),E2=0;C1 instanceof MouseEvent&&(E2=C1.button);let Z2=_y(M1,d2,z1),m2=Py(Z1,m,x,f,g,v,L,H,q1,h1==="sticky"),k2=(C1==null?void 0:C1.shiftKey)===!0,l4=(C1==null?void 0:C1.ctrlKey)===!0,G2=(C1==null?void 0:C1.metaKey)===!0,R4=C1!==void 0&&!(C1 instanceof MouseEvent)||(C1==null?void 0:C1.pointerType)==="touch",D4=20,z4=[Math.abs(M1)C||Z1>m){let j1=M1>C?-1:M1<0?1:0,Y2=Z1>m?1:Z1<0?-1:0,Q2=!1;if(Z2===-1&&m2===-1){let C3=v2(z,s0.length-1,-1);n4(C3!==void 0),Q2=GC&&M1m&&Z1=0?(Y2=!0,j1=v2(z,Q2,m2),n4(j1!==void 0),u4={kind:x&&m2===-2?x4:g9,location:[Q2,m2],bounds:j1,group:(S1=s0[Q2].group)!=null?S1:"",isEdge:Y2,shiftKey:k2,ctrlKey:l4,metaKey:G2,isTouch:R4,localEventX:G-j1.x,localEventY:B1-j1.y,button:E2,scrollEdge:z4}):u4={kind:x&&m2===-2?x4:g9,group:(l1=s0[Z2].group)!=null?l1:"",location:[Z2,m2],bounds:j1,isEdge:Y2,shiftKey:k2,ctrlKey:l4,metaKey:G2,isTouch:R4,localEventX:G-j1.x,localEventY:B1-j1.y,button:E2,scrollEdge:z4}}else{let j1=v2(z,Z2,m2);n4(j1!==void 0);let Y2=j1!==void 0&&j1.x+j1.width-G{}),i3=t1.useRef(C0);i3.current=C0;let[p9,f9]=t1.useMemo(()=>{let z=document.createElement("canvas"),G=document.createElement("canvas");return z.style.display="none",z.style.opacity="0",z.style.position="fixed",G.style.display="none",G.style.opacity="0",G.style.position="fixed",[z,G]},[]);t1.useLayoutEffect(()=>(document.documentElement.append(p9),document.documentElement.append(f9),()=>{p9.remove(),f9.remove()}),[p9,f9]);let i5=t1.useRef(),J9=t1.useCallback(()=>{var z,G;let B1=L2.current,C1=r5.current;if(B1===null||C1===null)return;let S1=i5.current,l1={canvas:B1,bufferA:p9,bufferB:f9,headerCanvas:C1,width:C,height:m,cellXOffset:A2,cellYOffset:H,translateX:Math.round(z1),translateY:Math.round(q1),mappedColumns:s0,enableGroups:x,freezeColumns:U,dragAndDropState:d1,theme:D,headerHeight:f,groupHeaderHeight:g,disabledRows:H1!=null?H1:N2.empty(),rowHeight:L,verticalBorder:n2,isResizing:i2,isFocused:b,selection:B,fillHandle:w,lastRowSticky:h1,rows:v,drawFocus:O,getCellContent:M,getGroupDetails:A!=null?A:$1=>({name:$1}),getRowThemeOverride:E,drawCustomCell:g2,drawHeaderCallback:N1,prelightCells:k1,highlightRegions:P2,imageLoader:H0,lastBlitData:j2,damage:L0.current,hoverValues:V2.current,hoverInfo:i3.current,spriteManager:S0,scrolling:W2,hyperWrapping:(z=f1==null?void 0:f1.hyperWrapping)!=null?z:!1,touchMode:m4,enqueue:Te.current,renderStrategy:(G=f1==null?void 0:f1.renderStrategy)!=null?G:Fd.value?"double-buffer":"single-buffer",getCellRenderer:x1};l1.damage===void 0?(i5.current=l1,_u(l1,S1)):_u(l1,void 0)},[p9,f9,C,m,A2,H,z1,q1,s0,x,U,d1,D,f,g,H1,L,n2,i2,b,B,w,h1,v,O,M,A,E,g2,N1,k1,P2,H0,S0,W2,f1==null?void 0:f1.hyperWrapping,f1==null?void 0:f1.renderStrategy,m4,x1]),x9=t1.useRef(J9);t1.useLayoutEffect(()=>{J9(),x9.current=J9},[J9]),t1.useLayoutEffect(()=>{(async()=>{var G;((G=document==null?void 0:document.fonts)==null?void 0:G.ready)!==void 0&&(await document.fonts.ready,i5.current=void 0,x9.current())})()},[]);let u5=t1.useCallback(z=>{L0.current=z,x9.current(),L0.current=void 0},[]),pt=GB(u5);Te.current=pt;let De=t1.useCallback(z=>{u5(z.map(G=>G.cell))},[u5]);H0.setCallback(u5);let[ft,Ie]=t1.useState(!1),[e7,M9]=w4!=null?w4:[],xt=e7!==void 0&&M9===-1,Mt=e7!==void 0&&M9===-2,s3=!1,Oe=!1,o3;if(e7!==void 0&&M9!==void 0&&M9>-1){let z=M([e7,M9],!0);s3=z.kind===e5.NewRow||z.kind===e5.Marker&&z.markerKind!=="number",Oe=z.kind===m1.Boolean&&Qi(z),o3=z.cursor}let Zt=i0!=null?i0:!1,d5=I1?"grabbing":Zt||i2?"col-resize":ft||Z?"crosshair":o3!==void 0?o3:xt||s3||Oe||Mt?"pointer":"default",P5=t1.useMemo(()=>({contain:"strict",display:"block",cursor:d5}),[d5]),Ae=t1.useRef("default"),We=p1==null?void 0:p1.current;We!=null&&Ae.current!==P5.cursor&&(We.style.cursor=Ae.current=P5.cursor);let H5=t1.useCallback((z,G,B1,C1)=>{if(A===void 0)return;let S1=A(z);if(S1.actions!==void 0){let l1=Nd(G,S1.actions);for(let[$1,p2]of l1.entries())if(Rd(p2,B1+G.x,C1+p2.y))return S1.actions[$1]}},[A]),T5=t1.useCallback((z,G,B1,C1)=>{let S1=u[G];if(!I1&&!i2&&S1.hasMenu===!0&&!(i0!=null&&i0)){let l1=v2(z,G,-1);n4(l1!==void 0);let $1=zd(l1.x,l1.y,l1.width,l1.height,ms(S1.title)==="rtl");if(B1>$1.x&&B1<$1.x+$1.width&&C1>$1.y&&C1<$1.y+$1.height)return l1}},[u,v2,i0,I1,i2]),M0=t1.useRef(0),L5=t1.useRef(),t7=t1.useRef(!1),a3=t1.useCallback(z=>{let G=L2.current,B1=p1==null?void 0:p1.current;if(G===null||z.target!==G&&z.target!==B1)return;t7.current=!0;let C1,S1;if(z instanceof MouseEvent?(C1=z.clientX,S1=z.clientY):(C1=z.touches[0].clientX,S1=z.touches[0].clientY),z.target===B1&&B1!==null){let $1=B1.getBoundingClientRect();if(C1>$1.right||S1>$1.bottom)return}let l1=X2(G,C1,S1,z);L5.current=l1.location,l1.isTouch&&(M0.current=Date.now()),Z4.current!==l1.isTouch&&_5(l1.isTouch),!(l1.kind===g9&&T5(G,l1.location[0],C1,S1)!==void 0)&&(l1.kind===x4&&H5(l1.group,l1.bounds,l1.localEventX,l1.localEventY)!==void 0||(a1==null||a1(l1),!l1.isTouch&&_1!==!0&&_1!==l1.kind&&z.preventDefault()))},[p1,_1,X2,H5,T5,a1]);I0("touchstart",a3,window,!1),I0("mousedown",a3,window,!1);let $e=t1.useCallback(z=>{var G,B1;let C1=L2.current;if(t7.current=!1,q===void 0||C1===null)return;let S1=p1==null?void 0:p1.current,l1=z.target!==C1&&z.target!==S1,$1,p2;if(z instanceof MouseEvent){if($1=z.clientX,p2=z.clientY,z.pointerType==="touch")return}else $1=z.changedTouches[0].clientX,p2=z.changedTouches[0].clientY;let M1=X2(C1,$1,p2,z);M1.isTouch&&M0.current!==0&&Date.now()-M0.current>500&&(M1=j(S({},M1),{isLongTouch:!0})),Z4.current!==M1.isTouch&&_5(M1.isTouch),!l1&&z.cancelable&&z.preventDefault();let[Z1]=M1.location,w0=T5(C1,Z1,$1,p2);if(M1.kind===g9&&w0!==void 0){(M1.button!==0||((G=L5.current)==null?void 0:G[0])!==Z1||((B1=L5.current)==null?void 0:B1[1])!==-1)&&q(M1,!0);return}else if(M1.kind===x4){let d2=H5(M1.group,M1.bounds,M1.localEventX,M1.localEventY);if(d2!==void 0){M1.button===0&&d2.onClick(M1);return}}q(M1,l1)},[q,p1,X2,T5,H5]);I0("mouseup",$e,window,!1),I0("touchend",$e,window,!1);let Et=t1.useCallback(z=>{var G,B1;let C1=L2.current;if(C1===null)return;let S1=p1==null?void 0:p1.current,l1=z.target!==C1&&z.target!==S1,$1,p2;z instanceof MouseEvent?($1=z.clientX,p2=z.clientY):($1=z.changedTouches[0].clientX,p2=z.changedTouches[0].clientY);let M1=X2(C1,$1,p2,z);Z4.current!==M1.isTouch&&_5(M1.isTouch),!l1&&z.cancelable&&z.preventDefault();let[Z1]=M1.location,w0=T5(C1,Z1,$1,p2);if(M1.kind===g9&&w0!==void 0)M1.button===0&&((G=L5.current)==null?void 0:G[0])===Z1&&((B1=L5.current)==null?void 0:B1[1])===-1&&(p==null||p(Z1,w0));else if(M1.kind===x4){let d2=H5(M1.group,M1.bounds,M1.localEventX,M1.localEventY);d2!==void 0&&M1.button===0&&d2.onClick(M1)}},[p1,X2,T5,p,H5]);I0("click",Et,window,!1);let M2=t1.useCallback(z=>{let G=L2.current;if(G===null||g1===void 0)return;let B1=X2(G,z.clientX,z.clientY,z);g1(B1,()=>{z.cancelable&&z.preventDefault()})},[X2,g1]);I0("contextmenu",M2,(i=p1==null?void 0:p1.current)!=null?i:null,!1);let D5=t1.useCallback(z=>{L0.current=z.map(G=>G.item),V2.current=z,x9.current(),L0.current=void 0},[]),g4=t1.useMemo(()=>new $B(D5),[D5]),_=t1.useRef(g4);_.current=g4,t1.useLayoutEffect(()=>{let z=_.current;if(w4===void 0||w4[1]<0){z.setHovered(w4);return}let G=M(w4),B1=x1(G);z.setHovered(B1===void 0&&G.kind===m1.Custom||(B1==null?void 0:B1.needsHover)===!0?w4:void 0)},[M,x1,w4]);let Z0=t1.useRef(),E4=t1.useCallback(z=>{var G;let B1=L2.current;if(B1===null)return;let C1=p1==null?void 0:p1.current,S1=z.target!==B1&&z.target!==C1,l1=X2(B1,z.clientX,z.clientY,z);if(l1.kind!=="out-of-bounds"&&S1&&!t7.current&&!l1.isTouch)return;if(!v9(l1,Z0.current))r1==null||r1(l1),R2(l1.kind===ut?void 0:[l1.location,[l1.localEventX,l1.localEventY]]),Z0.current=l1;else if(l1.kind==="cell"||l1.kind===g9||l1.kind===x4){let p2=[l1.location,[l1.localEventX,l1.localEventY]];if(R2(p2),i3.current=p2,l1.kind==="cell"){let M1=M(l1.location);(M1.kind===m1.Custom||((G=x1(M1))==null?void 0:G.needsHoverPosition)===!0)&&u5([l1.location])}else l1.kind===x4&&u5([l1.location])}let $1=l1.location[0]>=(T1?0:1);if(V0(l1.kind===g9&&l1.isEdge&&$1&&s1===!0),w&&B.current!==void 0){let[p2,M1]=B.current.cell,Z1=v2(B1,p2,M1),w0=z.clientX,d2=z.clientY;n4(Z1!==void 0),Ie(w0>=Z1.x+Z1.width-6&&w0<=Z1.x+Z1.width&&d2>=Z1.y+Z1.height-6&&d2<=Z1.y+Z1.height)}else Ie(!1);E1==null||E1(z),c1(l1)},[p1,X2,T1,s1,w,B,E1,c1,r1,M,x1,u5,v2]);I0("mousemove",E4,window,!0);let Nt=t1.useCallback(z=>{let G=L2.current;if(G===null)return;let B1,C1;B.current!==void 0&&(B1=v2(G,B.current.cell[0],B.current.cell[1]),C1=B.current.cell),e2==null||e2({bounds:B1,stopPropagation:()=>z.stopPropagation(),preventDefault:()=>z.preventDefault(),cancel:()=>{},ctrlKey:z.ctrlKey,metaKey:z.metaKey,shiftKey:z.shiftKey,altKey:z.altKey,key:z.key,keyCode:z.keyCode,rawEvent:z,location:C1})},[e2,B,v2]),Ue=t1.useCallback(z=>{let G=L2.current;if(G===null)return;let B1,C1;B.current!==void 0&&(B1=v2(G,B.current.cell[0],B.current.cell[1]),C1=B.current.cell),U1==null||U1({bounds:B1,stopPropagation:()=>z.stopPropagation(),preventDefault:()=>z.preventDefault(),cancel:()=>{},ctrlKey:z.ctrlKey,metaKey:z.metaKey,shiftKey:z.shiftKey,altKey:z.altKey,key:z.key,keyCode:z.keyCode,rawEvent:z,location:C1})},[U1,B,v2]),Rt=t1.useCallback(z=>{L2.current=z,O1!==void 0&&(O1.current=z)},[O1]),zt=t1.useCallback(z=>{var G;let B1=L2.current;if(B1===null||_1===!1||i2){z.preventDefault();return}let C1,S1,l1=X2(B1,z.clientX,z.clientY);if(_1!==!0&&l1.kind!==_1){z.preventDefault();return}let $1=(E2,Z2)=>{C1=E2,S1=Z2},p2,M1,Z1,w0=(E2,Z2,m2)=>{p2=E2,M1=Z2,Z1=m2},d2=!1;if(t2==null||t2(j(S({},l1),{setData:$1,setDragImage:w0,preventDefault:()=>d2=!0,defaultPrevented:()=>d2})),!d2&&C1!==void 0&&S1!==void 0&&z.dataTransfer!==null)if(z.dataTransfer.setData(C1,S1),z.dataTransfer.effectAllowed="copyLink",p2!==void 0&&M1!==void 0&&Z1!==void 0)z.dataTransfer.setDragImage(p2,M1,Z1);else{let[E2,Z2]=l1.location;if(Z2!==void 0){let m2=document.createElement("canvas"),k2=v2(B1,E2,Z2);n4(k2!==void 0);let l4=Math.ceil((G=window.devicePixelRatio)!=null?G:1);m2.width=k2.width*l4,m2.height=k2.height*l4;let G2=m2.getContext("2d");G2!==null&&(G2.scale(l4,l4),G2.textBaseline="middle",Z2===-1?(G2.font=`${D.headerFontStyle} ${D.fontFamily}`,G2.fillStyle=D.bgHeader,G2.fillRect(0,0,m2.width,m2.height),yd(G2,0,0,k2.width,k2.height,s0[E2],!1,D,!1,!1,0,S0,N1,!1)):(G2.font=`${D.baseFontStyle} ${D.fontFamily}`,G2.fillStyle=D.bgCell,G2.fillRect(0,0,m2.width,m2.height),Ed(G2,Z2,M([E2,Z2]),0,0,0,k2.width,k2.height,!1,D,g2,H0,S0,1,void 0,!1,0,void 0,void 0,x1))),m2.style.left="-100%",m2.style.position="absolute",m2.style.width=`${k2.width}px`,m2.style.height=`${k2.height}px`,document.body.append(m2),z.dataTransfer.setDragImage(m2,k2.width/2,k2.height/2),window.setTimeout(()=>{m2.remove()},0)}}else z.preventDefault()},[_1,i2,X2,t2,v2,D,s0,S0,N1,M,g2,H0,x1]);I0("dragstart",zt,(s=p1==null?void 0:p1.current)!=null?s:null,!1,!1);let l7=t1.useRef(),W=t1.useCallback(z=>{var G;let B1=L2.current;if(C2!==void 0&&z.preventDefault(),B1===null||Q1===void 0)return;let C1=X2(B1,z.clientX,z.clientY),[S1,l1]=C1.location,$1=S1-(T1?0:1),[p2,M1]=(G=l7.current)!=null?G:[];(p2!==$1||M1!==l1)&&(l7.current=[$1,l1],Q1([$1,l1],z.dataTransfer))},[T1,X2,Q1,C2]);I0("dragover",W,(o=p1==null?void 0:p1.current)!=null?o:null,!1,!1);let N4=t1.useCallback(()=>{l7.current=void 0,X1==null||X1()},[X1]);I0("dragend",N4,(a=p1==null?void 0:p1.current)!=null?a:null,!1,!1);let O0=t1.useCallback(z=>{let G=L2.current;if(G===null||C2===void 0)return;z.preventDefault();let B1=X2(G,z.clientX,z.clientY),[C1,S1]=B1.location,l1=C1-(T1?0:1);C2([l1,S1],z.dataTransfer)},[T1,X2,C2]);I0("drop",O0,(n=p1==null?void 0:p1.current)!=null?n:null,!1,!1);let yt=t1.useCallback(()=>{u2==null||u2()},[u2]);I0("dragleave",yt,(c=p1==null?void 0:p1.current)!=null?c:null,!1,!1);let qe=t1.useRef(B);qe.current=B;let V5=t1.useRef(null),t4=t1.useCallback(z=>{var G;L2.current===null||!L2.current.contains(document.activeElement)||(z===null&&qe.current.current!==void 0?(G=O1==null?void 0:O1.current)==null||G.focus({preventScroll:!0}):z!==null&&z.focus({preventScroll:!0}),V5.current=z)},[O1]);t1.useImperativeHandle(t,()=>({focus:()=>{var z;let G=V5.current;G===null||!document.contains(G)?(z=O1==null?void 0:O1.current)==null||z.focus({preventScroll:!0}):G.focus({preventScroll:!0})},getBounds:(z,G)=>{if(!(O1===void 0||O1.current===null))return v2(O1.current,z!=null?z:0,G!=null?G:-1)},damage:De}),[O1,De,v2]);let v5=t1.useRef(),Bt=zy(()=>{var z,G,B1,C1;if(C<50)return null;let S1=es(s0,A2,C,d1,z1),l1=T1?0:-1;!T1&&((z=S1[0])==null?void 0:z.sourceIndex)===0&&(S1=S1.slice(1));let[$1,p2]=(B1=(G=B.current)==null?void 0:G.cell)!=null?B1:[],M1=(C1=B.current)==null?void 0:C1.range,Z1=S1.map(d2=>d2.sourceIndex),w0=(0,Md.default)(H,Math.min(v,H+h));return $1!==void 0&&p2!==void 0&&!(Z1.includes($1)&&w0.includes(p2))&&t4(null),t1.createElement("table",{key:"access-tree",role:"grid","aria-rowcount":v+1,"aria-multiselectable":"true","aria-colcount":s0.length+l1},t1.createElement("thead",{role:"rowgroup"},t1.createElement("tr",{role:"row","aria-rowindex":1},S1.map(d2=>t1.createElement("th",{role:"columnheader","aria-selected":B.columns.hasIndex(d2.sourceIndex),"aria-colindex":d2.sourceIndex+1+l1,tabIndex:-1,onFocus:E2=>{if(E2.target!==V5.current)return Y1==null?void 0:Y1([d2.sourceIndex,-1])},key:d2.sourceIndex},d2.title)))),t1.createElement("tbody",{role:"rowgroup"},w0.map(d2=>t1.createElement("tr",{role:"row","aria-selected":B.rows.hasIndex(d2),key:d2,"aria-rowindex":d2+2},S1.map(E2=>{let Z2=E2.sourceIndex,m2=`${Z2},${d2}`,k2=$1===Z2&&p2===d2,l4=M1!==void 0&&Z2>=M1.x&&Z2=M1.y&&d2{let z4=O1==null?void 0:O1.current;if(z4!=null)return e2==null?void 0:e2({bounds:v2(z4,Z2,d2),cancel:()=>{},preventDefault:()=>{},stopPropagation:()=>{},ctrlKey:!1,key:"Enter",keyCode:13,metaKey:!1,shiftKey:!1,altKey:!1,rawEvent:void 0,location:R4})},onFocusCapture:z4=>{var u4,j1;if(!(z4.target===V5.current||((u4=v5.current)==null?void 0:u4[0])===Z2&&((j1=v5.current)==null?void 0:j1[1])===d2))return v5.current=R4,Y1==null?void 0:Y1(R4)},ref:k2?t4:void 0,tabIndex:-1},KB(D4,x1))})))))},[C,s0,A2,d1,z1,v,H,h,B,t4,M,O1,e2,v2,Y1],200),n3=J?Q7(s0,d1):0,r7=U===0||!J?0:A2>U?1:(0,ts.default)(-z1/100,0,1),c3=-H*32+q1,m0=n1?(0,ts.default)(-c3/100,0,1):0,F0=t1.useMemo(()=>{if(!r7&&!m0)return null;let z={position:"absolute",top:0,left:n3,width:C-n3,height:m,opacity:r7,pointerEvents:"none",transition:o1?void 0:"opacity 0.2s",boxShadow:"inset 13px 0 10px -13px rgba(0, 0, 0, 0.2)"},G={position:"absolute",top:X0,left:0,width:C,height:m,opacity:m0,pointerEvents:"none",transition:L1?void 0:"opacity 0.2s",boxShadow:"inset 0 13px 10px -13px rgba(0, 0, 0, 0.2)"};return t1.createElement(t1.Fragment,null,r7>0&&t1.createElement("div",{id:"shadow-x",style:z}),m0>0&&t1.createElement("div",{id:"shadow-y",style:G}))},[r7,m0,n3,C,o1,X0,m,L1]),h0=t1.useMemo(()=>({position:"absolute",top:0,left:0}),[]);return t1.createElement(t1.Fragment,null,t1.createElement("canvas",{"data-testid":"data-grid-canvas",tabIndex:0,onKeyDown:Nt,onKeyUp:Ue,onFocus:N,onBlur:F,ref:Rt,style:P5},Bt),t1.createElement("canvas",{ref:r5,style:h0}),F0)},YB=t1.memo(t1.forwardRef(XB));function Ee(e,t,l,r){var i;return(0,nd.default)(Math.round(t-((i=e.growOffset)!=null?i:0)),Math.ceil(l),Math.floor(r))}var QB=e=>{var t;let[l,r]=I2.useState(),[i,s]=I2.useState(),[o,a]=I2.useState(),[n,c]=I2.useState(),[C,m]=I2.useState(!1),[h,u]=I2.useState(),[d,H]=I2.useState(),[f,w]=I2.useState(),[g,L]=I2.useState(!1),[v,M]=I2.useState(),{onHeaderMenuClick:E,getCellContent:p,onColumnMoved:x,onColumnResize:Z,onColumnResizeStart:N,onColumnResizeEnd:F,gridRef:b,maxColumnWidth:B,minColumnWidth:U,onRowMoved:g1,lockColumns:h1,onMouseDown:J,onMouseUp:n1,onItemHovered:O,onDragStart:a1,canvasRef:q}=e,E1=((t=Z!=null?Z:F)!=null?t:N)!==void 0,{columns:c1,selection:r1}=e,d1=r1.columns,T1=I2.useCallback(s1=>{let[H1,A]=s1.location;o!==void 0&&n!==H1&&H1>=h1?(m(!0),c(H1)):d!==void 0&&A!==void 0?(L(!0),w(Math.max(0,A))):O==null||O(s1)},[o,d,n,O,h1]),e2=x!==void 0,U1=I2.useCallback(s1=>{var H1,A;if(s1.button===0){let[D,k1]=s1.location;if(s1.kind==="out-of-bounds"&&s1.isEdge&&E1){let D1=(H1=b==null?void 0:b.current)==null?void 0:H1.getBounds(c1.length-1,-1);D1!==void 0&&(r(D1.x),s(c1.length-1))}else if(s1.kind==="header"&&D>=h1){let D1=q==null?void 0:q.current;if(s1.isEdge&&E1&&D1){r(s1.bounds.x),s(D);let N1=D1.getBoundingClientRect().width/D1.offsetWidth,g2=s1.bounds.width/N1;N==null||N(c1[D],g2,D,g2+((A=c1[D].growOffset)!=null?A:0))}else s1.kind==="header"&&e2&&(u(s1.bounds.x),a(D))}else s1.kind==="cell"&&h1>0&&D===0&&k1!==void 0&&g1!==void 0&&(M(s1.bounds.y),H(k1))}J==null||J(s1)},[J,E1,h1,g1,b,c1,e2,N,q]),P2=I2.useCallback((s1,H1)=>{C||g||E==null||E(s1,H1)},[C,g,E]),O1=I2.useRef(-1),t2=I2.useCallback(()=>{O1.current=-1,H(void 0),w(void 0),M(void 0),L(!1),a(void 0),c(void 0),u(void 0),m(!1),s(void 0),r(void 0)},[]),X1=I2.useCallback((s1,H1)=>{var A,D,k1;if(s1.button===0){if(i!==void 0){if((d1==null?void 0:d1.hasIndex(i))===!0)for(let n2 of d1){if(n2===i)continue;let N1=c1[n2],g2=Ee(N1,O1.current,U,B);Z==null||Z(N1,g2,n2,g2+((A=N1.growOffset)!=null?A:0))}let D1=Ee(c1[i],O1.current,U,B);if(F==null||F(c1[i],D1,i,D1+((D=c1[i].growOffset)!=null?D:0)),d1.hasIndex(i))for(let n2 of d1){if(n2===i)continue;let N1=c1[n2],g2=Ee(N1,O1.current,U,B);F==null||F(N1,g2,n2,g2+((k1=N1.growOffset)!=null?k1:0))}}t2(),o!==void 0&&n!==void 0&&(x==null||x(o,n)),d!==void 0&&f!==void 0&&(g1==null||g1(d,f))}n1==null||n1(s1,H1)},[n1,i,o,n,d,f,d1,F,c1,U,B,Z,x,g1,t2]),p1=I2.useMemo(()=>{if(!(o===void 0||n===void 0)&&o!==n)return{src:o,dest:n}},[o,n]),i2=I2.useCallback(s1=>{var H1,A;let D=q==null?void 0:q.current;if(o!==void 0&&h!==void 0)Math.abs(s1.clientX-h)>20&&m(!0);else if(d!==void 0&&v!==void 0)Math.abs(s1.clientY-v)>20&&L(!0);else if(i!==void 0&&l!==void 0&&D){let D1=D.getBoundingClientRect().width/D.offsetWidth,n2=(s1.clientX-l)/D1,N1=c1[i],g2=Ee(N1,n2,U,B);if(Z==null||Z(N1,g2,i,g2+((H1=N1.growOffset)!=null?H1:0)),O1.current=n2,(d1==null?void 0:d1.first())===i)for(let Y1 of d1){if(Y1===i)continue;let Q1=c1[Y1],C2=Ee(Q1,O1.current,U,B);Z==null||Z(Q1,C2,Y1,C2+((A=Q1.growOffset)!=null?A:0))}}},[o,h,d,v,i,l,c1,U,B,Z,d1,q]),I1=I2.useCallback((s1,H1)=>{if(d===void 0||f===void 0)return p(s1,H1);let[A,D]=s1;return D===f?D=d:(D>f&&(D-=1),D>=d&&(D+=1)),p([A,D],H1)},[d,f,p]),_1=I2.useCallback(s1=>{a1==null||a1(s1),s1.defaultPrevented()||t2()},[t2,a1]);return I2.createElement(YB,{accessibilityHeight:e.accessibilityHeight,canvasRef:e.canvasRef,cellXOffset:e.cellXOffset,cellYOffset:e.cellYOffset,columns:e.columns,disabledRows:e.disabledRows,drawCustomCell:e.drawCustomCell,drawFocusRing:e.drawFocusRing,drawHeader:e.drawHeader,enableGroups:e.enableGroups,eventTargetRef:e.eventTargetRef,experimental:e.experimental,fillHandle:e.fillHandle,firstColAccessible:e.firstColAccessible,fixedShadowX:e.fixedShadowX,fixedShadowY:e.fixedShadowY,freezeColumns:e.freezeColumns,getCellRenderer:e.getCellRenderer,getGroupDetails:e.getGroupDetails,getRowThemeOverride:e.getRowThemeOverride,groupHeaderHeight:e.groupHeaderHeight,headerHeight:e.headerHeight,headerIcons:e.headerIcons,height:e.height,highlightRegions:e.highlightRegions,imageWindowLoader:e.imageWindowLoader,isDraggable:e.isDraggable,isFilling:e.isFilling,isFocused:e.isFocused,onCanvasBlur:e.onCanvasBlur,onCanvasFocused:e.onCanvasFocused,onCellFocused:e.onCellFocused,onContextMenu:e.onContextMenu,onDragEnd:e.onDragEnd,onDragLeave:e.onDragLeave,onDragOverCell:e.onDragOverCell,onDrop:e.onDrop,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,onMouseMove:e.onMouseMove,prelightCells:e.prelightCells,rowHeight:e.rowHeight,rows:e.rows,selection:e.selection,smoothScrollX:e.smoothScrollX,smoothScrollY:e.smoothScrollY,theme:e.theme,trailingRowType:e.trailingRowType,translateX:e.translateX,translateY:e.translateY,verticalBorder:e.verticalBorder,width:e.width,getCellContent:I1,isResizing:i!==void 0,onHeaderMenuClick:P2,isDragging:C,onItemHovered:T1,onDragStart:_1,onMouseDown:U1,allowResize:E1,onMouseUp:X1,dragAndDropState:p1,onMouseMoveRaw:i2,ref:b})},JB=QB;function eS(e){let t=(0,t3.useRef)(null),[l,r]=(0,t3.useState)({width:e==null?void 0:e[0],height:e==null?void 0:e[1]});return(0,t3.useLayoutEffect)(()=>{let i=o=>{for(let a of o){let{width:n,height:c}=a&&a.contentRect||{};r(C=>C.width===n&&C.height===c?C:{width:n,height:c})}},s=new window.ResizeObserver(i);return t.current&&s.observe(t.current,void 0),()=>{s.disconnect()}},[t.current]),S({ref:t},l)}var tS=()=>e=>e.isSafari?"scroll":"auto",lS=W0("div")({name:"ScrollRegionStyle",class:"s1jz82f8",propsAsIs:!1,vars:{"s1jz82f8-0":[tS()]}});function rS(e){let[t,l]=w2.useState(!1),r=w2.useRef(0);return I0("touchstart",w2.useCallback(()=>{window.clearTimeout(r.current),l(!0)},[]),window,!0,!1),I0("touchend",w2.useCallback(i=>{i.touches.length===0&&(r.current=window.setTimeout(()=>l(!1),e))},[e]),window,!0,!1),t}var iS=e=>{var t,l,r,i;let{children:s,clientHeight:o,scrollHeight:a,scrollWidth:n,update:c,draggable:C,className:m,preventDiagonalScrolling:h=!1,paddingBottom:u=0,paddingRight:d=0,rightElement:H,rightElementProps:f,scrollRef:w,scrollToEnd:g,initialSize:L,minimap:v}=e,M=[],E=(t=f==null?void 0:f.sticky)!=null?t:!1,p=(l=f==null?void 0:f.fill)!=null?l:!1,x=w2.useRef(0),Z=w2.useRef(0),N=w2.useRef(null),F=window.devicePixelRatio;w2.useEffect(()=>{let U1=N.current;U1===null||g!==!0||(U1.scrollLeft=U1.scrollWidth-U1.clientWidth)},[g]);let b=w2.useRef({scrollLeft:0,scrollTop:0,lockDirection:void 0}),B=w2.useRef(null),U=rS(200),[g1,h1]=w2.useState(!0),J=w2.useRef(0);w2.useEffect(()=>{if(!g1||U||b.current.lockDirection===void 0)return;let U1=N.current;if(U1===null)return;let[P2,O1]=b.current.lockDirection;P2!==void 0?U1.scrollLeft=P2:O1!==void 0&&(U1.scrollTop=O1),b.current.lockDirection=void 0},[U,g1]);let n1=w2.useCallback(()=>{var U1,P2,O1,t2;let X1=N.current;if(X1===null)return;let p1=X1.scrollTop,i2=X1.scrollLeft,I1=b.current.scrollTop,_1=b.current.scrollLeft,s1=i2-_1,H1=p1-I1;U&&s1!==0&&H1!==0&&(Math.abs(s1)>3||Math.abs(H1)>3)&&h&&b.current.lockDirection===void 0&&(b.current.lockDirection=Math.abs(s1)0&&(Math.abs(k1)>2e3||D===0||D===D1)&&a>X1.scrollHeight+5){let n2=D/D1,N1=(a-X1.clientHeight)*n2;x.current=N1-D}A!==void 0&&(window.clearTimeout(J.current),h1(!1),J.current=window.setTimeout(()=>h1(!0),200)),c({x:i2,y:D+x.current,width:X1.clientWidth-d,height:X1.clientHeight-u,paddingRight:(t2=(O1=B.current)==null?void 0:O1.clientWidth)!=null?t2:0})},[u,d,a,c,h,U]),O=w2.useRef(n1);O.current=n1;let a1=w2.useRef(),q=w2.useRef(!1);w2.useEffect(()=>{q.current?n1():q.current=!0},[n1,u,d]);let E1=w2.useCallback(U1=>{N.current=U1,w!==void 0&&(w.current=U1)},[w]),c1=0,r1=0;for(M.push(w2.createElement("div",{key:c1++,style:{width:n,height:0}}));r1O.current(),0),a1.current={width:T1,height:e2}),(T1!=null?T1:0)===0||(e2!=null?e2:0)===0?w2.createElement("div",{ref:d1}):w2.createElement("div",{ref:d1},w2.createElement(lS,{isSafari:Fd.value},v,w2.createElement("div",{className:"dvn-underlay"},s),w2.createElement("div",{ref:E1,style:a1.current,draggable:C,onDragStart:U1=>{C||(U1.stopPropagation(),U1.preventDefault())},className:"dvn-scroller "+(m!=null?m:""),onScroll:n1},w2.createElement("div",{className:"dvn-scroll-inner"+(H===void 0?" hidden":"")},w2.createElement("div",{className:"dvn-stack"},M),H!==void 0&&w2.createElement(w2.Fragment,null,!p&&w2.createElement("div",{className:"dvn-spacer"}),w2.createElement("div",{ref:B,style:{height:e2,maxHeight:o-Math.ceil(F%1),position:"sticky",top:0,paddingLeft:1,marginBottom:-40,marginRight:d,flexGrow:p?1:void 0,right:E?d!=null?d:0:void 0,pointerEvents:"auto"}},H))))))},sS=W0("div")({name:"MinimapStyle",class:"m15w2ly5",propsAsIs:!1}),oS=e=>{var t,l,r;let{columns:i,rows:s,rowHeight:o,headerHeight:a,groupHeaderHeight:n,enableGroups:c,freezeColumns:C,experimental:m,clientSize:h,className:u,onVisibleRegionChanged:d,scrollToEnd:H,scrollRef:f,preventDiagonalScrolling:w,rightElement:g,rightElementProps:L,overscrollX:v,overscrollY:M,showMinimap:E=!1,initialSize:p,smoothScrollX:x=!1,smoothScrollY:Z=!1,isDraggable:N}=e,{paddingRight:F,paddingBottom:b}=m!=null?m:{},[B,U]=h,g1=u0.useRef(),h1=u0.useRef(),J=u0.useRef(),n1=u0.useRef(),O=u0.useMemo(()=>{let _1=Math.max(0,v!=null?v:0);for(let s1 of i)_1+=s1.width;return _1},[i,v]),a1=c?a+n:a;if(typeof o=="number")a1+=s*o;else for(let _1=0;_1{var _1,s1,H1;if(q.current===void 0)return;let A=S({},q.current),D=0,k1=A.x<0?-A.x:0,D1=0,n2=0;A.x=A.x<0?0:A.x;let N1=0;for(let s2=0;s2=o1+s2.width)D+=s2.width,n2++,D1++;else if(A.x>o1)D+=s2.width,x?k1+=o1-A.x:n2++,D1++;else if(A.x+A.width>o1)D+=s2.width,D1++;else break}let g2=0,Y1=0,Q1=0;if(typeof o=="number")Z?(Y1=Math.floor(A.y/o),g2=Y1*o-A.y):Y1=Math.ceil(A.y/o),Q1=Math.ceil(A.height/o)+Y1,g2<0&&Q1++;else{let s2=0;for(let o1=0;o1=s2+L1)s2+=L1,Y1++,Q1++;else if(A.y>f1)s2+=L1,Z?g2+=f1-A.y:Y1++,Q1++;else if(A.y+A.height>L1/2+s2)s2+=L1,Q1++;else break}}let C2={x:n2,y:Y1,width:D1-n2,height:Q1-Y1},u2=g1.current;(u2===void 0||u2.y!==C2.y||u2.x!==C2.x||u2.height!==C2.height||u2.width!==C2.width||h1.current!==k1||J.current!==g2||A.width!==((_1=n1.current)==null?void 0:_1[0])||A.height!==((s1=n1.current)==null?void 0:s1[1]))&&(d==null||d({x:n2,y:Y1,width:D1-n2,height:Q1-Y1},A.width,A.height,(H1=A.paddingRight)!=null?H1:0,k1,g2),g1.current=C2,h1.current=k1,J.current=g2,n1.current=[A.width,A.height])},[i,o,s,d,C,x,Z]),c1=u0.useCallback(_1=>{q.current=_1,E1()},[E1]);u0.useEffect(()=>{E1()},[E1]);let r1=(t=f==null?void 0:f.current)!=null?t:void 0,d1=(0,kd.default)(O/a1,2/3,1.5),T1=200,e2=d1>1?T1:Math.ceil(T1*d1),U1=d1>1?Math.ceil(T1/d1):T1,P2=e2/O,O1=U1/a1,t2=Math.min(B*Math.max(P2,.01),e2),X1=Math.min(U*Math.max(O1,.01),U1),p1=((l=r1==null?void 0:r1.scrollLeft)!=null?l:0)/(O-B)*(e2-t2),i2=((r=r1==null?void 0:r1.scrollTop)!=null?r:0)/(a1-U)*(U1-X1),I1=u0.useMemo(()=>{if(!E||t2===0||X1===0)return;let _1=s1=>{if(r1===void 0)return;let H1=s1.currentTarget.getBoundingClientRect(),A=s1.clientX-H1.x-t2/2,D=s1.clientY-H1.y-X1/2,k1=(O-r1.clientWidth)*(A/(e2-t2)),D1=(a1-r1.clientHeight)*(D/(U1-X1));r1.scrollTo({left:k1,top:D1,behavior:s1.type==="mousemove"?"auto":"smooth"})};return u0.createElement(sS,{style:{width:e2,height:U1},"data-testid":"minimap-container",onMouseMove:s1=>{s1.buttons===1&&_1(s1)},onClick:_1},u0.createElement("div",{className:"header"}),u0.createElement("div",{className:"locationMarker",onDragStart:s1=>s1.preventDefault(),style:{left:p1,top:i2,width:t2,height:X1,borderRadius:Math.min(t2,X1*.2,9)}}))},[U1,a1,p1,r1,E,i2,X1,t2,e2,O]);return u0.createElement(iS,{scrollRef:f,minimap:I1,className:u,preventDiagonalScrolling:w,draggable:N===!0||typeof N=="string",scrollWidth:O+(F!=null?F:0),scrollHeight:a1+(b!=null?b:0),clientHeight:U,rightElement:g,paddingBottom:b,paddingRight:F,rightElementProps:L,update:c1,initialSize:p,scrollToEnd:H},u0.createElement(JB,{eventTargetRef:f,width:B,height:U,accessibilityHeight:e.accessibilityHeight,canvasRef:e.canvasRef,cellXOffset:e.cellXOffset,cellYOffset:e.cellYOffset,columns:e.columns,disabledRows:e.disabledRows,enableGroups:e.enableGroups,fillHandle:e.fillHandle,firstColAccessible:e.firstColAccessible,fixedShadowX:e.fixedShadowX,fixedShadowY:e.fixedShadowY,freezeColumns:e.freezeColumns,getCellContent:e.getCellContent,getCellRenderer:e.getCellRenderer,getGroupDetails:e.getGroupDetails,getRowThemeOverride:e.getRowThemeOverride,groupHeaderHeight:e.groupHeaderHeight,headerHeight:e.headerHeight,highlightRegions:e.highlightRegions,imageWindowLoader:e.imageWindowLoader,isFilling:e.isFilling,isFocused:e.isFocused,lockColumns:e.lockColumns,maxColumnWidth:e.maxColumnWidth,minColumnWidth:e.minColumnWidth,onHeaderMenuClick:e.onHeaderMenuClick,onMouseMove:e.onMouseMove,prelightCells:e.prelightCells,rowHeight:e.rowHeight,rows:e.rows,selection:e.selection,theme:e.theme,trailingRowType:e.trailingRowType,translateX:e.translateX,translateY:e.translateY,verticalBorder:e.verticalBorder,drawCustomCell:e.drawCustomCell,drawFocusRing:e.drawFocusRing,drawHeader:e.drawHeader,experimental:e.experimental,gridRef:e.gridRef,headerIcons:e.headerIcons,isDraggable:e.isDraggable,onCanvasBlur:e.onCanvasBlur,onCanvasFocused:e.onCanvasFocused,onCellFocused:e.onCellFocused,onColumnMoved:e.onColumnMoved,onColumnResize:e.onColumnResize,onColumnResizeEnd:e.onColumnResizeEnd,onColumnResizeStart:e.onColumnResizeStart,onContextMenu:e.onContextMenu,onDragEnd:e.onDragEnd,onDragLeave:e.onDragLeave,onDragOverCell:e.onDragOverCell,onDragStart:e.onDragStart,onDrop:e.onDrop,onItemHovered:e.onItemHovered,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onRowMoved:e.onRowMoved,smoothScrollX:e.smoothScrollX,smoothScrollY:e.smoothScrollY}))},aS=oS,nS=()=>e=>e.showSearch?0:400,cS=W0("div")({name:"SearchWrapper",class:"sxep88s",propsAsIs:!1,vars:{"sxep88s-0":[nS(),"px"]}}),CS=W1.createElement("svg",{className:"button-icon",viewBox:"0 0 512 512"},W1.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 244l144-144 144 144M256 120v292"})),mS=W1.createElement("svg",{className:"button-icon",viewBox:"0 0 512 512"},W1.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 268l144 144 144-144M256 392V100"})),hS=W1.createElement("svg",{className:"button-icon",viewBox:"0 0 512 512"},W1.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M368 368L144 144M368 144L144 368"})),wS=10,gS=e=>{let{canvasRef:t,cellYOffset:l,rows:r,columns:i,searchInputRef:s,searchValue:o,searchResults:a,onSearchValueChange:n,getCellsForSelection:c,onSearchResultsChanged:C,showSearch:m=!1,onSearchClose:h}=e,[u]=W1.useState(()=>"search-box-"+Math.round(Math.random()*1e3)),[d,H]=W1.useState(""),f=o!=null?o:d,w=W1.useCallback(O=>{H(O),n==null||n(O)},[n]),[g,L]=W1.useState(),v=W1.useRef(g);v.current=g,W1.useEffect(()=>{a!==void 0&&(a.length>0?L(O=>{var a1;return{rowsSearched:r,results:a.length,selectedIndex:(a1=O==null?void 0:O.selectedIndex)!=null?a1:-1}}):L(void 0))},[r,a]);let M=W1.useRef(new AbortController),E=W1.useRef(),[p,x]=W1.useState([]),Z=a!=null?a:p,N=W1.useCallback(()=>{E.current!==void 0&&(window.cancelAnimationFrame(E.current),E.current=void 0,M.current.abort())},[]),F=W1.useRef(l);F.current=l;let b=W1.useCallback(O=>{let a1=new RegExp(O.replace(/([$()*+.?[\\\]^{|}-])/g,"\\$1"),"i"),q=F.current,E1=Math.min(10,r),c1=0;L(void 0),x([]);let r1=[],d1=async()=>{var T1,e2;if(c===void 0)return;let U1=performance.now(),P2=r-c1,O1=c({x:0,y:q,width:i.length,height:Math.min(E1,P2,r-q)},M.current.signal);typeof O1=="function"&&(O1=await O1());let t2=!1;for(let[s1,H1]of O1.entries())for(let[A,D]of H1.entries()){let k1;switch(D.kind){case m1.Text:case m1.Number:k1=D.displayData;break;case m1.Uri:case m1.Markdown:k1=D.data;break;case m1.Boolean:k1=typeof D.data=="boolean"?D.data.toString():void 0;break;case m1.Image:case m1.Bubble:k1=D.data.join("\u{1F433}");break;case m1.Custom:k1=D.copyData;break}k1!==void 0&&a1.test(k1)&&(r1.push([A,s1+q]),t2=!0)}let X1=performance.now();t2&&x([...r1]),c1+=O1.length,n4(c1<=r);let p1=(e2=(T1=v.current)==null?void 0:T1.selectedIndex)!=null?e2:-1;L({results:r1.length,rowsSearched:c1,selectedIndex:p1}),C==null||C(r1,p1),q+E1>=r?q=0:q+=E1;let i2=X1-U1,I1=Math.max(i2,1),_1=wS/I1;E1=Math.ceil(E1*_1),c1{var O;h==null||h(),L(void 0),x([]),C==null||C([],-1),N(),(O=t==null?void 0:t.current)==null||O.focus()},[N,t,h,C]),U=W1.useCallback(O=>{w(O.target.value),a===void 0&&(O.target.value===""?(L(void 0),x([]),N()):b(O.target.value))},[b,N,w,a]);W1.useEffect(()=>{m&&s.current!==null&&(w(""),s.current.focus({preventScroll:!0}))},[m,s,w]);let g1=W1.useCallback(O=>{var a1;if((a1=O==null?void 0:O.stopPropagation)==null||a1.call(O),g===void 0)return;let q=(g.selectedIndex+1)%g.results;L(j(S({},g),{selectedIndex:q})),C==null||C(Z,q)},[g,C,Z]),h1=W1.useCallback(O=>{var a1;if((a1=O==null?void 0:O.stopPropagation)==null||a1.call(O),g===void 0)return;let q=(g.selectedIndex-1)%g.results;q<0&&(q+=g.results),L(j(S({},g),{selectedIndex:q})),C==null||C(Z,q)},[C,Z,g]),J=W1.useCallback(O=>{(O.ctrlKey||O.metaKey)&&O.nativeEvent.code==="KeyF"||O.key==="Escape"?(B(),O.stopPropagation(),O.preventDefault()):O.key==="Enter"&&(O.shiftKey?h1():g1())},[B,g1,h1]);W1.useEffect(()=>()=>{N()},[N]);let n1=W1.useMemo(()=>{var O,a1,q;let E1;g!==void 0&&(E1=g.results>=1e3?"over 1000":`${g.results} result${g.results!==1?"s":""}`,g.selectedIndex>=0&&(E1=`${g.selectedIndex+1} of ${E1}`));let c1=T1=>{T1.stopPropagation()},d1={width:`${Math.floor(((O=g==null?void 0:g.rowsSearched)!=null?O:0)/r*100)}%`};return W1.createElement(cS,{showSearch:m,onMouseDown:c1,onMouseMove:c1,onMouseUp:c1,onClick:c1},W1.createElement("div",{className:"search-bar-inner"},W1.createElement("input",{id:u,"aria-hidden":!m,"data-testid":"search-input",ref:s,onChange:U,value:f,tabIndex:m?void 0:-1,onKeyDownCapture:J}),W1.createElement("button",{"aria-label":"Previous Result","aria-hidden":!m,tabIndex:m?void 0:-1,onClick:h1,disabled:((a1=g==null?void 0:g.results)!=null?a1:0)===0},CS),W1.createElement("button",{"aria-label":"Next Result","aria-hidden":!m,tabIndex:m?void 0:-1,onClick:g1,disabled:((q=g==null?void 0:g.results)!=null?q:0)===0},mS),h!==void 0&&W1.createElement("button",{"aria-label":"Close Search","aria-hidden":!m,"data-testid":"search-close-button",tabIndex:m?void 0:-1,onClick:B},hS)),g!==void 0?W1.createElement(W1.Fragment,null,W1.createElement("div",{className:"search-status"},W1.createElement("div",{"data-testid":"search-result-area"},E1)),W1.createElement("div",{className:"search-progress",style:d1})):W1.createElement("div",{className:"search-status"},W1.createElement("label",{htmlFor:u},"Type to search")))},[B,g1,h1,U,h,J,r,g,f,m,u,s]);return W1.createElement(W1.Fragment,null,W1.createElement(aS,{prelightCells:Z,accessibilityHeight:e.accessibilityHeight,canvasRef:e.canvasRef,cellXOffset:e.cellXOffset,cellYOffset:e.cellYOffset,className:e.className,clientSize:e.clientSize,columns:e.columns,disabledRows:e.disabledRows,enableGroups:e.enableGroups,fillHandle:e.fillHandle,firstColAccessible:e.firstColAccessible,fixedShadowX:e.fixedShadowX,fixedShadowY:e.fixedShadowY,freezeColumns:e.freezeColumns,getCellContent:e.getCellContent,getCellRenderer:e.getCellRenderer,getGroupDetails:e.getGroupDetails,getRowThemeOverride:e.getRowThemeOverride,groupHeaderHeight:e.groupHeaderHeight,headerHeight:e.headerHeight,highlightRegions:e.highlightRegions,imageWindowLoader:e.imageWindowLoader,initialSize:e.initialSize,isFilling:e.isFilling,isFocused:e.isFocused,lockColumns:e.lockColumns,maxColumnWidth:e.maxColumnWidth,minColumnWidth:e.minColumnWidth,onHeaderMenuClick:e.onHeaderMenuClick,onMouseMove:e.onMouseMove,onVisibleRegionChanged:e.onVisibleRegionChanged,overscrollX:e.overscrollX,overscrollY:e.overscrollY,preventDiagonalScrolling:e.preventDiagonalScrolling,rightElement:e.rightElement,rightElementProps:e.rightElementProps,rowHeight:e.rowHeight,rows:e.rows,scrollRef:e.scrollRef,selection:e.selection,showMinimap:e.showMinimap,theme:e.theme,trailingRowType:e.trailingRowType,translateX:e.translateX,translateY:e.translateY,verticalBorder:e.verticalBorder,drawCustomCell:e.drawCustomCell,drawFocusRing:e.drawFocusRing,drawHeader:e.drawHeader,experimental:e.experimental,gridRef:e.gridRef,headerIcons:e.headerIcons,isDraggable:e.isDraggable,onCanvasBlur:e.onCanvasBlur,onCanvasFocused:e.onCanvasFocused,onCellFocused:e.onCellFocused,onColumnMoved:e.onColumnMoved,onColumnResize:e.onColumnResize,onColumnResizeEnd:e.onColumnResizeEnd,onColumnResizeStart:e.onColumnResizeStart,onContextMenu:e.onContextMenu,onDragEnd:e.onDragEnd,onDragLeave:e.onDragLeave,onDragOverCell:e.onDragOverCell,onDragStart:e.onDragStart,onDrop:e.onDrop,onItemHovered:e.onItemHovered,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onRowMoved:e.onRowMoved,smoothScrollX:e.smoothScrollX,smoothScrollY:e.smoothScrollY,scrollToEnd:e.scrollToEnd}),n1)},uS=gS,dS=()=>e=>Math.max(16,e.targetHeight-10),HS=W0("input")({name:"RenameInput",class:"r1kzy40b",propsAsIs:!1,vars:{"r1kzy40b-0":[dS(),"px"]}}),LS=e=>{let{bounds:t,group:l,onClose:r,canvasBounds:i,onFinish:s}=e,[o,a]=Ct.default.useState(l);return Ct.default.createElement(Qu,{style:{position:"absolute",left:t.x-i.left+1,top:t.y-i.top,width:t.width-2,height:t.height},className:"c1sqdbw3",onClickOutside:r},Ct.default.createElement(HS,{targetHeight:t.height,"data-testid":"group-rename-input",value:o,onBlur:r,onFocus:n=>n.target.setSelectionRange(0,o.length),onChange:n=>a(n.target.value),onKeyDown:n=>{n.key==="Enter"?s(o):n.key==="Escape"&&r()},autoFocus:!0}))},is=150;function VS(e,t,l,r){var i,s;let o=r(t);return(s=(i=o==null?void 0:o.measure)==null?void 0:i.call(o,e,t,l))!=null?s:is}function bd(e,t,l,r,i,s,o,a,n){let c=[];if(i!==void 0&&c.push(...i.map(h=>h[r]).map(h=>VS(e,h,t,n))),c.length>5&&a){let h=c.reduce((u,d)=>u+d)/c.length;c=c.filter(u=>u{if(typeof window=="undefined")return[null,null];let g=document.createElement("canvas");return g.style.display="none",g.style.opacity="0",g.style.position="fixed",[g,g.getContext("2d",{alpha:!1})]},[]);c4.useLayoutEffect(()=>(h&&document.documentElement.append(h),()=>{h==null||h.remove()}),[h]);let d=c4.useRef({}),H=c4.useRef(),[f,w]=c4.useState();return c4.useLayoutEffect(()=>{let g=C.current;if(g===void 0||e.every(lt))return;let L=Math.max(1,10-Math.floor(e.length/1e4)),v=0;L1&&(L--,v=1);let M={x:0,y:0,width:e.length,height:Math.min(c.current,L)},E={x:0,y:c.current-1,width:e.length,height:1};(async()=>{let x=g(M,n.signal),Z=v>0?g(E,n.signal):void 0,N;typeof x=="object"?N=x:N=await Eu(x),Z!==void 0&&(typeof Z=="object"?N=[...N,...Z]:N=[...N,...await Eu(Z)]),H.current=e,w(N)})()},[n.signal,e]),c4.useMemo(()=>{var g;let v=e.every(lt)?e:u===null?e.map(x=>lt(x)?x:j(S({},x),{width:is})):(u.font=`${m.current.baseFontStyle} ${m.current.fontFamily}`,e.map((x,Z)=>{if(lt(x))return x;if(d.current[x.id]!==void 0)return j(S({},x),{width:d.current[x.id]});if(f===void 0||H.current!==e||x.id===void 0)return j(S({},x),{width:is});let N=bd(u,o,x,Z,f,i,s,!0,a);return d.current[x.id]=N.width,N})),M=0,E=0,p=[];for(let[x,Z]of v.entries())M+=Z.width,Z.grow!==void 0&&Z.grow>0&&(E+=Z.grow,p.push(x));if(M0){let x=[...v],Z=r-M,N=Z;for(let F=0;F1&&e.startsWith("_")){if(Number.parseInt(e.slice(1))!==t.keyCode)return!1}else if(e!==t.key)return!1;return!0}function D0(e,t){if(e.length===0)return!1;let l=!1,r=!1,i=!1,s=!1,o=e.split("+"),a=o.pop();if(!pS(a,t))return!1;for(let n of o)switch(n){case"ctrl":l=!0;break;case"shift":r=!0;break;case"alt":i=!0;break;case"meta":s=!0;break;case"primary":ct.value?s=!0:l=!0;break}return t.altKey===i&&t.ctrlKey===l&&t.shiftKey===r&&t.metaKey===s}function fS(e,t,l,r,i,s){let o=mt.default.useCallback((c,C,m,h)=>{var u,d;(s==="cell"||s==="multi-cell")&&c!==void 0&&(c=j(S({},c),{range:{x:c.cell[0],y:c.cell[1],width:1,height:1}}));let H=l==="mixed"&&(m||h==="drag"),f=r==="mixed"&&H,w=i==="mixed"&&H,g={current:c===void 0?void 0:j(S({},c),{rangeStack:h==="drag"?(d=(u=e.current)==null?void 0:u.rangeStack)!=null?d:[]:[]}),columns:f?e.columns:N2.empty(),rows:w?e.rows:N2.empty()};m&&(s==="multi-rect"||s==="multi-cell")&&g.current!==void 0&&e.current!==void 0&&(g=j(S({},g),{current:j(S({},g.current),{rangeStack:[...e.current.rangeStack,e.current.range]})})),t(g,C)},[r,e,l,s,i,t]),a=mt.default.useCallback((c,C,m)=>{c=c!=null?c:e.rows,C!==void 0&&(c=c.add(C));let h;if(i==="exclusive"&&c.length>0)h={current:void 0,columns:N2.empty(),rows:c};else{let u=m&&l==="mixed",d=m&&r==="mixed";h={current:u?e.current:void 0,columns:d?e.columns:N2.empty(),rows:c}}t(h,!1)},[r,e,l,i,t]),n=mt.default.useCallback((c,C,m)=>{c=c!=null?c:e.columns,C!==void 0&&(c=c.add(C));let h;if(r==="exclusive"&&c.length>0)h={current:void 0,rows:N2.empty(),columns:c};else{let u=m&&l==="mixed",d=m&&i==="mixed";h={current:u?e.current:void 0,rows:d?e.rows:N2.empty(),columns:c}}t(h,!1)},[r,e,l,i,t]);return[o,a,n]}function xS(e,t,l,r,i){let s=ss.useCallback(c=>{var C;if(e===!0){let m=[];for(let h=c.y;h=i?u.push({kind:m1.Loading,allowOverlay:!1}):u.push(t([d,h]));m.push(u)}return m}return(C=e==null?void 0:e(c,r.signal))!=null?C:[]},[r.signal,t,e,i]),o=e!==void 0?s:void 0,a=ss.useCallback(c=>{if(o===void 0)return[];let C=j(S({},c),{x:c.x-l});if(C.x<0){C.x=0,C.width--;let m=o(C,r.signal);return typeof m=="function"?async()=>(await m()).map(h=>[{kind:m1.Loading,allowOverlay:!1},...h]):m.map(h=>[{kind:m1.Loading,allowOverlay:!1},...h])}return o(C,r.signal)},[r.signal,o,l]);return[e!==void 0?a:void 0,o]}function MS(e){var t,l;if(e.copyData!==void 0)return{formatted:e.copyData,rawValue:e.copyData,format:"string"};switch(e.kind){case m1.Boolean:return{formatted:e.data===!0?"TRUE":e.data===!1?"FALSE":e.data===ns?"INDETERMINATE":"",rawValue:e.data,format:"boolean"};case m1.Custom:return{formatted:e.copyData,rawValue:e.copyData,format:"string"};case m1.Image:case m1.Bubble:return{formatted:e.data,rawValue:e.data,format:"string-array"};case m1.Drilldown:return{formatted:e.data.map(r=>r.text),rawValue:e.data.map(r=>r.text),format:"string-array"};case m1.Text:return{formatted:(t=e.displayData)!=null?t:e.data,rawValue:e.data,format:"string"};case m1.Uri:return{formatted:(l=e.displayData)!=null?l:e.data,rawValue:e.data,format:"url"};case m1.Markdown:case m1.RowID:return{formatted:e.data,rawValue:e.data,format:"string"};case m1.Number:return{formatted:e.displayData,rawValue:e.data,format:"number"};case m1.Loading:return{formatted:"#LOADING",rawValue:"",format:"string"};case m1.Protected:return{formatted:"************",rawValue:"",format:"string"};default:Be(e)}}function ZS(e,t){return e.map((r,i)=>{let s=t[i];return r.map(o=>o.span!==void 0&&o.span[0]!==s?{formatted:"",rawValue:"",format:"string"}:MS(o))})}function Pu(e,t){return(t?/[\t\n",]/:/[\t\n"]/).test(e)&&(e=`"${e.replace(/"/g,'""')}"`),e}function ES(e){var t,l;let r=[];for(let i of e){let s=[];for(let o of i)o.format==="url"?s.push((l=(t=o.rawValue)==null?void 0:t.toString())!=null?l:""):o.format==="string-array"?s.push(o.formatted.map(a=>Pu(a,!0)).join(",")):s.push(Pu(o.formatted,!1));r.push(s.join(" "))}return r.join(` -`)}function Xi(e){return e.replace(/\t/g," ").replace(/ {2,}/g,t=>" ".repeat(t.length))}function Tu(e){return'"'+e.replace(/&/g,"&").replace(/"/g,""").replace(//g,">")+'"'}function NS(e){return e.replace(/"/g,'"').replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")}function RS(e){var t,l;let r=[];r.push('',"");for(let i of e){r.push("");for(let s of i){let o=`gdg-format="${s.format}"`;s.format==="url"?r.push(``):s.format==="string-array"?r.push(``):r.push(``)}r.push("")}return r.push("
    ${Xi(s.formatted)}
      ${s.formatted.map((a,n)=>`
    1. `+Xi(a)+"
    2. ").join("")}
    ${Xi(s.formatted)}
    "),r.join("")}function zS(e,t){let l=ZS(e,t),r=ES(l),i=RS(l);return{textPlain:r,textHtml:i}}function Du(e){var t,l,r,i,s,o;let a=document.createElement("html");a.innerHTML=e.replace(/ /g," ");let n=a.querySelector("table");if(n===null)return;let c=[n],C=[],m;for(;c.length>0;){let h=c.pop();if(h===void 0)break;if(h instanceof HTMLTableElement||h.nodeName==="TBODY")c.push(...[...h.children].reverse());else if(h instanceof HTMLTableRowElement)m!==void 0&&C.push(m),m=[],c.push(...[...h.children].reverse());else if(h instanceof HTMLTableCellElement){let u=h.cloneNode(!0),H=u.children.length===1&&u.children[0].nodeName==="P"?u.children[0]:null,f=(H==null?void 0:H.children.length)===1&&H.children[0].nodeName==="FONT",w=u.querySelectorAll("br");for(let v of w)v.replaceWith(` -`);let g=u.getAttribute("gdg-raw-value"),L=(t=u.getAttribute("gdg-format"))!=null?t:"string";if(u.querySelector("a")!==null)m==null||m.push({rawValue:(r=(l=u.querySelector("a"))==null?void 0:l.getAttribute("href"))!=null?r:"",formatted:(i=u.textContent)!=null?i:"",format:L});else if(u.querySelector("ol")!==null){let v=u.querySelectorAll("li");m==null||m.push({rawValue:[...v].map(M=>{var E;return(E=M.getAttribute("gdg-raw-value"))!=null?E:""}),formatted:[...v].map(M=>{var E;return(E=M.textContent)!=null?E:""}),format:"string-array"})}else if(g!==null)m==null||m.push({rawValue:NS(g),formatted:(s=u.textContent)!=null?s:"",format:L});else{let v=(o=u.textContent)!=null?o:"";f&&(v=v.replace(/\n(?!\n)/g,"")),m==null||m.push({rawValue:v!=null?v:"",formatted:v!=null?v:"",format:L})}}}return m!==void 0&&C.push(m),C}function yS(e,t,l,r,i){var s,o;let a=e;if(r==="allowPartial"||e.current===void 0||t===void 0)return e;let n=!1;do{if((e==null?void 0:e.current)===void 0)break;let c=(s=e.current)==null?void 0:s.range,C=[];if(c.width>2){let u=t({x:c.x,y:c.y,width:1,height:c.height},i.signal);if(typeof u=="function")return a;C.push(...u);let d=t({x:c.x+c.width-1,y:c.y,width:1,height:c.height},i.signal);if(typeof d=="function")return a;C.push(...d)}else{let u=t({x:c.x,y:c.y,width:c.width,height:c.height},i.signal);if(typeof u=="function")return a;C.push(...u)}let m=c.x-l,h=c.x+c.width-1-l;for(let u of C)for(let d of u)d.span!==void 0&&(m=Math.min(d.span[0],m),h=Math.max(d.span[1],h));m===c.x-l&&h===c.x+c.width-1-l?n=!0:e={current:{cell:(o=e.current.cell)!=null?o:[0,0],range:{x:m+l,y:c.y,width:h-m+1,height:c.height},rangeStack:e.current.rangeStack},columns:e.columns,rows:e.rows}}while(!n);return e}function Iu(e){return e.startsWith('"')&&e.endsWith('"')&&(e=e.slice(1,-1).replace(/""/g,'"')),e}function BS(e){let t;(a=>{a[a.None=0]="None",a[a.inString=1]="inString",a[a.inStringPostQuote=2]="inStringPostQuote"})(t||(t={}));let l=[],r=[],i=0,s=0;e=e.replace(/\r\n/g,` -`);let o=0;for(let a of e){switch(s){case 0:a===" "||a===` -`?(r.push(e.slice(i,o)),i=o+1,a===` -`&&(l.push(r),r=[])):a==='"'&&(s=1);break;case 1:a==='"'&&(s=2);break;case 2:a==='"'?s=1:((a===" "||a===` -`)&&(r.push(Iu(e.slice(i,o))),i=o+1,a===` -`&&(l.push(r),r=[])),s=0);break}o++}return ia.map(n=>({rawValue:n,formatted:n,format:"string"})))}function Ou(e,t,l){var r;let i=zS(e,t),s=n=>{var c;(c=window.navigator.clipboard)==null||c.writeText(n)},o=(n,c)=>{var C;return((C=window.navigator.clipboard)==null?void 0:C.write)===void 0?!1:(window.navigator.clipboard.write([new ClipboardItem({"text/plain":new Blob([n],{type:"text/plain"}),"text/html":new Blob([c],{type:"text/html"})})]),!0)},a=(n,c)=>{var C,m;try{if(l===void 0||l.clipboardData===null)throw new Error("No clipboard data");(C=l==null?void 0:l.clipboardData)==null||C.setData("text/plain",n),(m=l==null?void 0:l.clipboardData)==null||m.setData("text/html",c)}catch(h){o(n,c)||s(n)}};((r=window.navigator.clipboard)==null?void 0:r.write)!==void 0||(l==null?void 0:l.clipboardData)!==void 0?a(i.textPlain,i.textHtml):s(i.textPlain),l==null||l.preventDefault()}function Au(e){return typeof e=="string"?e:`${e}px`}var SS=()=>e=>e.innerWidth,FS=()=>e=>e.innerHeight,kS=W0("div")({name:"Wrapper",class:"wzg2m5k",propsAsIs:!1,vars:{"wzg2m5k-0":[SS()],"wzg2m5k-1":[FS()]}}),bS=e=>{let s=e,{inWidth:t,inHeight:l,children:r}=s,i=v0(s,["inWidth","inHeight","children"]);return _d.createElement(kS,S({innerHeight:Au(l),innerWidth:Au(t)},i),r)};function Pd(e){return e!==!0}var Wu=20,_S={getAccessibilityString:e=>{var t,l;return(l=(t=e.data)==null?void 0:t.toString())!=null?l:"false"},kind:m1.Boolean,needsHover:!0,useLabel:!1,needsHoverPosition:!0,measure:()=>50,draw:e=>{var t;return Gy(e,e.cell.data,Qi(e.cell),(t=e.cell.maxSize)!=null?t:Wu)},onDelete:e=>j(S({},e),{data:!1}),onClick:e=>{var t,l;let{cell:r,posX:i,posY:s,bounds:o,theme:a}=e,{width:n,height:c,x:C,y:m}=o,h=(t=r.maxSize)!=null?t:Wu,u=Math.floor(o.y+c/2),d=ud(h,c,a.cellVerticalPadding),H=gd((l=r.contentAlign)!=null?l:"center",C,n,a.cellHorizontalPadding,d),f=wd(H,u,d),w=dd(C+i,m+s,f);if(Qi(r)&&w)return j(S({},r),{data:Pd(r.data)})},onPaste:(e,t)=>{let l=gt;return e.toLowerCase()==="true"?l=!0:e.toLowerCase()==="false"?l=!1:e.toLowerCase()==="indeterminate"&&(l=ns),l===t.data?void 0:j(S({},t),{data:l})}},PS=2,TS=1300;function DS(e,t){let l=os.default.useRef(0),[r,i]=e!=null?e:[0,0];os.default.useEffect(()=>{if(r===0&&i===0){l.current=0;return}let s=0,o=n=>{var c;if(s===0)s=n;else{let C=n-s;l.current=Math.min(1,l.current+C/TS);let m=l.current**1.618*C*PS;(c=t.current)==null||c.scrollBy(r*m,i*m),s=n}a=window.requestAnimationFrame(o)},a=window.requestAnimationFrame(o);return()=>window.cancelAnimationFrame(a)},[t,r,i])}var IS=W0("div")({name:"BubblesOverlayEditorStyle",class:"b1bqsp5z",propsAsIs:!1}),OS=e=>{let{bubbles:t}=e;return ht.createElement(IS,null,t.map((l,r)=>ht.createElement("div",{key:r,className:"boe-bubble"},l)),ht.createElement("textarea",{className:"gdg-input",autoFocus:!0}))},AS=OS,WS={getAccessibilityString:e=>Vd(e.data),kind:m1.Bubble,needsHover:!1,useLabel:!1,needsHoverPosition:!1,measure:(e,t,l)=>t.data.reduce((r,i)=>e.measureText(i).width+r+20,0)+2*l.cellHorizontalPadding-4,draw:e=>Ky(e,e.cell.data),provideEditor:()=>e=>{let{value:t}=e;return Td.createElement(AS,{bubbles:t.data})},onPaste:()=>{}},$S=W0("div")({name:"DrilldownOverlayEditorStyle",class:"df2kt4a",propsAsIs:!1}),US=e=>{let{drilldowns:t}=e;return ze.createElement($S,null,t.map((l,r)=>ze.createElement("div",{key:r,className:"doe-bubble"},l.img!==void 0&&ze.createElement("img",{src:l.img}),ze.createElement("div",null,l.text))))},qS=US,jS={getAccessibilityString:e=>Vd(e.data.map(t=>t.text)),kind:m1.Drilldown,needsHover:!1,useLabel:!1,needsHoverPosition:!1,measure:(e,t,l)=>t.data.reduce((r,i)=>e.measureText(i.text).width+r+20+(i.img!==void 0?18:0),0)+2*l.cellHorizontalPadding-4,draw:e=>Yy(e,e.cell.data),provideEditor:()=>e=>{let{value:t}=e;return Dd.createElement(qS,{drilldowns:t.data})},onPaste:()=>{}},GS=W0("div")({name:"ImageOverlayEditorStyle",class:"i1eozt10",propsAsIs:!1}),KS=e=>{let{urls:t,canWrite:l,onEditClick:r,renderImage:i}=e,s=t.filter(a=>a!=="");if(s.length===0)return null;let o=s.length>1;return G9.createElement(GS,{"data-testid":"GDG-default-image-overlay-editor"},G9.createElement(Od.Carousel,{showArrows:o,showThumbs:!1,swipeable:o,emulateTouch:o,infiniteLoop:o},s.map(a=>{var n;let c=(n=i==null?void 0:i(a))!=null?n:G9.createElement("img",{draggable:!1,src:a});return G9.createElement("div",{className:"centering-container",key:a},c)})),l&&r&&G9.createElement("button",{className:"edit-icon",onClick:r},G9.createElement(Cs,null)))},XS={getAccessibilityString:e=>e.data.join(", "),kind:m1.Image,needsHover:!1,useLabel:!1,needsHoverPosition:!1,draw:e=>{var t;return Qy(e,(t=e.cell.displayData)!=null?t:e.cell.data,e.cell.rounding,e.cell.contentAlign)},measure:(e,t)=>t.data.length*50,onDelete:e=>j(S({},e),{data:[]}),provideEditor:()=>e=>{let{value:t,onFinishedEditing:l,imageEditorOverride:r}=e,i=r!=null?r:KS;return Id.createElement(i,{urls:t.data,canWrite:t.allowAdd,onCancel:l,onChange:s=>{l(j(S({},t),{data:[s]}))}})},onPaste:(e,t)=>{e=e.trim();let r=e.split(",").map(i=>{try{return new URL(i),i}catch(s){return}}).filter(i=>i!==void 0);if(!(r.length===t.data.length&&r.every((i,s)=>i===t.data[s])))return j(S({},t),{data:r})}},YS={getAccessibilityString:()=>"",kind:m1.Loading,needsHover:!1,useLabel:!1,needsHoverPosition:!1,measure:()=>120,draw:()=>{},onPaste:()=>{}},QS=W0("div")({name:"MarkdownContainer",class:"mlbeo71",propsAsIs:!1}),JS=class extends as.default.PureComponent{constructor(){super(...arguments),this.targetElement=null,this.containerRefHook=e=>{this.targetElement=e,this.renderMarkdownIntoDiv()}}renderMarkdownIntoDiv(){let{targetElement:e,props:t}=this;if(e===null)return;let{contents:l,createNode:r}=t,i=A1(l),s=document.createRange();s.selectNodeContents(e),s.deleteContents();let o=r==null?void 0:r(i);if(o===void 0){let n=document.createElement("template");n.innerHTML=i,o=n.content}e.append(o);let a=e.getElementsByTagName("a");for(let n of a)n.target="_blank",n.rel="noreferrer noopener"}render(){return this.renderMarkdownIntoDiv(),as.default.createElement(QS,{ref:this.containerRefHook})}},eF=W0("textarea")({name:"InputBox",class:"ijuk0po",propsAsIs:!1}),tF=W0("div")({name:"ShadowBox",class:"saq3p5l",propsAsIs:!1}),lF=W0("div")({name:"GrowingEntryStyle",class:"gf8vzix",propsAsIs:!1}),$u=0,Ht=e=>{let d=e,{placeholder:t,value:l,onKeyDown:r,highlight:i,altNewline:s,validatedSelection:o}=d,a=v0(d,["placeholder","value","onKeyDown","highlight","altNewline","validatedSelection"]),{onChange:n,className:c}=a,C=C4.useRef(null),m=l!=null?l:"";n4(n!==void 0,"GrowingEntry must be a controlled input area");let[h]=C4.useState(()=>"input-box-"+($u=($u+1)%1e7));C4.useEffect(()=>{let H=C.current;if(H===null||H.disabled)return;let f=m.toString().length;H.focus(),H.setSelectionRange(i?0:f,f)},[]),C4.useLayoutEffect(()=>{var H;if(o!==void 0){let f=typeof o=="number"?[o,null]:o;(H=C.current)==null||H.setSelectionRange(f[0],f[1])}},[o]);let u=C4.useCallback(H=>{H.key==="Enter"&&H.shiftKey&&s===!0||r==null||r(H)},[s,r]);return C4.createElement(lF,{className:"gdg-growing-entry"},C4.createElement(tF,{className:c},m+` -`),C4.createElement(eF,j(S({},a),{className:(c!=null?c:"")+" gdg-input",id:h,ref:C,onKeyDown:u,value:m,placeholder:t,dir:"auto"})))},rF=()=>e=>e.targetWidth,Uu=W0("div")({name:"MarkdownOverlayEditorStyle",class:"mdwzdl1",propsAsIs:!1,vars:{"mdwzdl1-0":[rF(),"px"]}}),iF=e=>{let{value:t,onChange:l,forceEditMode:r,createNode:i,targetRect:s,onFinish:o,validatedSelection:a}=e,n=t.data,c=t.readonly===!0,[C,m]=z0.useState(n===""||r),h=z0.useCallback(()=>{m(d=>!d)},[]),u=n?"ml-6":"";return C?z0.createElement(Uu,{targetWidth:s.width-20},z0.createElement(Ht,{autoFocus:!0,highlight:!1,validatedSelection:a,value:n,onKeyDown:d=>{d.key==="Enter"&&d.stopPropagation()},onChange:l}),z0.createElement("div",{className:`edit-icon checkmark-hover ${u}`,onClick:()=>o(t)},z0.createElement(Ry,null))):z0.createElement(Uu,{targetWidth:s.width},z0.createElement(JS,{contents:n,createNode:i}),!c&&z0.createElement(z0.Fragment,null,z0.createElement("div",{className:"spacer"}),z0.createElement("div",{className:`edit-icon edit-hover ${u}`,onClick:h},z0.createElement(Cs,null))),z0.createElement("textarea",{className:"md-edit-textarea gdg-input",autoFocus:!0}))},sF={getAccessibilityString:e=>{var t,l;return(l=(t=e.data)==null?void 0:t.toString())!=null?l:""},kind:m1.Markdown,needsHover:!1,needsHoverPosition:!1,drawPrep:ke,measure:(e,t,l)=>{let r=t.data.split(` -`)[0];return e.measureText(r).width+2*l.cellHorizontalPadding},draw:e=>be(e,e.cell.data,e.cell.contentAlign),onDelete:e=>j(S({},e),{data:""}),provideEditor:()=>e=>{let{onChange:t,value:l,target:r,onFinishedEditing:i,markdownDivCreateNode:s,forceEditMode:o,validatedSelection:a}=e;return Ad.createElement(iF,{onFinish:i,targetRect:r,value:l,validatedSelection:a,onChange:n=>t(j(S({},l),{data:n.target.value})),forceEditMode:o,createNode:s})},onPaste:(e,t)=>e===t.data?void 0:j(S({},t),{data:e})},oF={getAccessibilityString:e=>e.row.toString(),kind:e5.Marker,needsHover:!0,needsHoverPosition:!1,drawPrep:$y,measure:()=>44,draw:e=>qy(e,e.cell.row,e.cell.checked,e.cell.markerKind,e.cell.drawHandle),onClick:e=>{let{bounds:t,cell:l,posX:r,posY:i}=e,{width:s,height:o}=t,a=l.drawHandle?7+(s-7)/2:s/2,n=o/2;if(Math.abs(r-a)<=10&&Math.abs(i-n)<=10)return j(S({},l),{checked:!l.checked})},onPaste:()=>{}},aF={getAccessibilityString:()=>"",kind:e5.NewRow,needsHover:!0,needsHoverPosition:!1,measure:()=>200,draw:e=>Wy(e,e.cell.hint,e.cell.icon),onPaste:()=>{}},nF=Y9.lazy(async()=>await import("./number-overlay-editor-FPDVTUA6-T62XNA23.js")),cF={getAccessibilityString:e=>{var t,l;return(l=(t=e.data)==null?void 0:t.toString())!=null?l:""},kind:m1.Number,needsHover:!1,needsHoverPosition:!1,useLabel:!0,drawPrep:ke,draw:e=>be(e,e.cell.displayData,e.cell.contentAlign),measure:(e,t)=>e.measureText(t.displayData).width+16,onDelete:e=>j(S({},e),{data:void 0}),provideEditor:()=>e=>{let{isHighlighted:t,onChange:l,value:r,validatedSelection:i}=e;return Y9.createElement(Y9.Suspense,{fallback:null},Y9.createElement(nF,{highlight:t,disabled:r.readonly===!0,value:r.data,fixedDecimals:r.fixedDecimals,allowNegative:r.allowNegative,thousandSeparator:r.thousandSeparator,decimalSeparator:r.decimalSeparator,validatedSelection:i,onChange:s=>{var o;return l(j(S({},r),{data:Number.isNaN((o=s.floatValue)!=null?o:0)?0:s.floatValue}))}}))},onPaste:(e,t,l)=>{var r;let i=typeof l.rawValue=="number"?l.rawValue:Number.parseFloat(typeof l.rawValue=="string"?l.rawValue:e);if(!(Number.isNaN(i)||t.data===i))return j(S({},t),{data:i,displayData:(r=l.formattedString)!=null?r:t.displayData})}},CF={getAccessibilityString:()=>"",measure:()=>108,kind:m1.Protected,needsHover:!1,needsHoverPosition:!1,draw:jy,onPaste:()=>{}},mF={getAccessibilityString:e=>{var t,l;return(l=(t=e.data)==null?void 0:t.toString())!=null?l:""},kind:m1.RowID,needsHover:!1,needsHoverPosition:!1,drawPrep:(e,t)=>ke(e,t,e.theme.textLight),draw:e=>be(e,e.cell.data,e.cell.contentAlign),measure:(e,t)=>e.measureText(t.data).width+16,provideEditor:()=>e=>{let{isHighlighted:t,onChange:l,value:r,validatedSelection:i}=e;return Wd.default.createElement(Ht,{highlight:t,autoFocus:r.readonly!==!0,disabled:r.readonly!==!1,value:r.data,validatedSelection:i,onChange:s=>l(j(S({},r),{data:s.target.value}))})},onPaste:()=>{}},hF={getAccessibilityString:e=>{var t,l;return(l=(t=e.data)==null?void 0:t.toString())!=null?l:""},kind:m1.Text,needsHover:!1,needsHoverPosition:!1,drawPrep:ke,useLabel:!0,draw:e=>(be(e,e.cell.displayData,e.cell.contentAlign,e.cell.allowWrapping,e.hyperWrapping),!0),measure:(e,t,l)=>{let r=t.displayData.split(` -`).slice(0,t.allowWrapping===!0?void 0:1);return Math.max(...r.map(i=>e.measureText(i).width+2*l.cellHorizontalPadding))},onDelete:e=>j(S({},e),{data:""}),provideEditor:e=>({disablePadding:e.allowWrapping===!0,editor:t=>{let{isHighlighted:l,onChange:r,value:i,validatedSelection:s}=t;return $d.createElement(Ht,{style:e.allowWrapping===!0?{padding:"3px 8.5px"}:void 0,highlight:l,autoFocus:i.readonly!==!0,disabled:i.readonly===!0,altNewline:!0,value:i.data,validatedSelection:s,onChange:o=>r(j(S({},i),{data:o.target.value}))})}}),onPaste:(e,t,l)=>{var r;return e===t.data?void 0:j(S({},t),{data:e,displayData:(r=l.formattedString)!=null?r:t.displayData})}},wF=W0("div")({name:"UriOverlayEditorStyle",class:"uf0sjo8",propsAsIs:!1}),gF=e=>{let{uri:t,onChange:l,forceEditMode:r,readonly:i,validatedSelection:s,preview:o}=e,[a,n]=J4.useState(t===""||r),c=J4.useCallback(()=>{n(!0)},[]);return a?J4.createElement(Ht,{validatedSelection:s,highlight:!0,autoFocus:!0,value:t,onChange:l}):J4.createElement(wF,null,J4.createElement("a",{className:"link-area",href:t,target:"_blank",rel:"noopener noreferrer"},o),!i&&J4.createElement("div",{className:"edit-icon",onClick:c},J4.createElement(Cs,null)),J4.createElement("textarea",{className:"gdg-input",autoFocus:!0}))},uF=gF,dF={getAccessibilityString:e=>{var t,l;return(l=(t=e.data)==null?void 0:t.toString())!=null?l:""},kind:m1.Uri,needsHover:!1,needsHoverPosition:!1,useLabel:!0,drawPrep:ke,draw:e=>be(e,e.cell.data,e.cell.contentAlign),measure:(e,t,l)=>e.measureText(t.data).width+l.cellHorizontalPadding*2,onDelete:e=>j(S({},e),{data:""}),provideEditor:()=>e=>{var t;let{onChange:l,value:r,forceEditMode:i,validatedSelection:s}=e;return Ud.createElement(uF,{forceEditMode:i,uri:r.data,preview:(t=r.displayData)!=null?t:r.data,validatedSelection:s,readonly:r.readonly===!0,onChange:o=>l(j(S({},r),{data:o.target.value}))})},onPaste:(e,t,l)=>{var r;return e===t.data?void 0:j(S({},t),{data:e,displayData:(r=l.formattedString)!=null?r:t.displayData})}},HF={[e5.Marker]:oF,[e5.NewRow]:aF,[m1.Boolean]:_S,[m1.Bubble]:WS,[m1.Drilldown]:jS,[m1.Image]:XS,[m1.Loading]:YS,[m1.Markdown]:sF,[m1.Number]:cF,[m1.Protected]:CF,[m1.RowID]:mF,[m1.Text]:hF,[m1.Uri]:dF};function LF({rowHeight:e,headerHeight:t,groupHeaderHeight:l,theme:r,overscrollX:i,overscrollY:s,scaleToRem:o,remSize:a}){let[n,c,C,m,h,u]=qd.default.useMemo(()=>{var d,H,f;if(!o||a===16)return[e,t,l,r,i,s];let w=a/16,g=e,L=ld();return[typeof g=="number"?g*w:v=>Math.ceil(g(v)*w),Math.ceil(t*w),Math.ceil(l*w),j(S({},r),{headerIconSize:((d=r==null?void 0:r.headerIconSize)!=null?d:L.headerIconSize)*w,cellHorizontalPadding:((H=r==null?void 0:r.cellHorizontalPadding)!=null?H:L.cellHorizontalPadding)*w,cellVerticalPadding:((f=r==null?void 0:r.cellVerticalPadding)!=null?f:L.cellVerticalPadding)*w}),Math.ceil((i!=null?i:0)*w),Math.ceil((s!=null?s:0)*w)]},[l,t,i,s,a,e,o,r]);return{rowHeight:n,headerHeight:c,groupHeaderHeight:C,theme:m,overscrollX:h,overscrollY:u}}var VF=0;function vF(e){return(0,Ku.default)((0,Yi.default)((0,Yi.default)(e).filter(t=>t.span!==void 0).map(t=>{var l,r,i,s;return(0,K9.default)(((r=(l=t.span)==null?void 0:l[0])!=null?r:0)+1,((s=(i=t.span)==null?void 0:i[1])!=null?s:0)+1)})))}function it(e,t){return e===void 0||t===0||e.columns.length===0&&e.current===void 0?e:{current:e.current===void 0?void 0:{cell:[e.current.cell[0]+t,e.current.cell[1]],range:j(S({},e.current.range),{x:e.current.range.x+t}),rangeStack:e.current.rangeStack.map(l=>j(S({},l),{x:l.x+t}))},rows:e.rows,columns:e.columns.offset(t)}}var qu={selectAll:!0,selectRow:!0,selectColumn:!0,downFill:!1,rightFill:!1,pageUp:!1,pageDown:!1,clear:!0,copy:!0,paste:!0,cut:!0,search:!1,first:!0,last:!0},ju={kind:m1.Loading,allowOverlay:!1},st={columns:N2.empty(),rows:N2.empty(),current:void 0},pF=(e,t)=>{var l,r,i,s,o;let[a,n]=T.useState(st),[c,C]=T.useState(),m=T.useRef(null),h=T.useRef(null),[u,d]=T.useState(),H=T.useRef(null),f=T.useRef(),{rowMarkers:w="none",rowMarkerWidth:g,imageEditorOverride:L,getRowThemeOverride:v,markdownDivCreateNode:M,width:E,height:p,columns:x,rows:Z,getCellContent:N,onCellClicked:F,onCellActivated:b,onFinishedEditing:B,coercePasteValue:U,drawHeader:g1,onHeaderClicked:h1,spanRangeBehavior:J="default",onGroupHeaderClicked:n1,onCellContextMenu:O,className:a1,onHeaderContextMenu:q,getCellsForSelection:E1,onGroupHeaderContextMenu:c1,onGroupHeaderRenamed:r1,onCellEdited:d1,onCellsEdited:T1,onSearchResultsChanged:e2,searchResults:U1,onSearchValueChange:P2,searchValue:O1,onKeyDown:t2,onKeyUp:X1,keybindings:p1,onRowAppended:i2,onColumnMoved:I1,validateCell:_1,highlightRegions:s1,drawCell:H1,rangeSelect:A="rect",columnSelect:D="multi",rowSelect:k1="multi",rangeSelectionBlending:D1="exclusive",columnSelectionBlending:n2="exclusive",rowSelectionBlending:N1="exclusive",onDelete:g2,onDragStart:Y1,onMouseMove:Q1,onPaste:C2,copyHeaders:u2=!1,freezeColumns:s2=0,rowSelectionMode:o1="auto",rowMarkerStartIndex:L1=1,rowMarkerTheme:f1,onHeaderMenuClick:x1,getGroupDetails:z1,onSearchClose:q1,onItemHovered:A2,onSelectionCleared:L2,showSearch:B0,onVisibleRegionChanged:H0,gridSelection:L0,onGridSelectionChange:W2,minColumnWidth:g5=50,maxColumnWidth:V2=500,maxColumnAutoWidth:j2,provideEditor:C0,trailingRowOptions:R2,scrollOffsetX:i0,scrollOffsetY:V0,verticalBorder:r5,onDragOverCell:m4,onDrop:_5,onColumnResize:Z4,onColumnResizeEnd:S0,onColumnResizeStart:X0,customRenderers:h4,fillHandle:T4,drawFocusRing:s0,experimental:v2,fixedShadowX:X2,fixedShadowY:v9,headerIcons:w4,imageWindowLoader:Te,initialSize:i3,isDraggable:p9,onDragLeave:f9,onRowMoved:i5,overscrollX:J9,overscrollY:x9,preventDiagonalScrolling:u5,rightElement:pt,rightElementProps:De,showMinimap:ft,smoothScrollX:Ie,smoothScrollY:e7,scrollToEnd:M9,scaleToRem:xt=!1,rowHeight:Mt=34,headerHeight:s3=36,groupHeaderHeight:Oe=s3,theme:o3,isOutsideClick:Zt}=e,d5=Math.max(g5,20),P5=Math.max(V2,d5),Ae=Math.max(j2!=null?j2:P5,d5),H5=T.useMemo(()=>typeof window=="undefined"?{fontSize:"16px"}:window.getComputedStyle(document.documentElement),[]).fontSize,T5=T.useMemo(()=>Number.parseFloat(H5),[H5]),{rowHeight:M0,headerHeight:L5,groupHeaderHeight:t7,theme:a3,overscrollX:$e,overscrollY:Et}=LF({groupHeaderHeight:Oe,headerHeight:s3,overscrollX:J9,overscrollY:x9,remSize:T5,rowHeight:Mt,scaleToRem:xt,theme:o3}),M2=T.useMemo(()=>p1===void 0?qu:S(S({},qu),p1),[p1]),D5=g!=null?g:Z>1e4?48:Z>1e3?44:Z>100?36:32,g4=w!=="none",_=g4?1:0,Z0=i2!==void 0,E4=(R2==null?void 0:R2.sticky)===!0,[Nt,Ue]=T.useState(!1),Rt=B0!=null?B0:Nt,zt=T.useCallback(()=>{q1!==void 0?q1():Ue(!1)},[q1]),l7=T.useMemo(()=>L0===void 0?void 0:it(L0,_),[L0,_]),W=l7!=null?l7:a,N4=T.useRef(new AbortController);T.useEffect(()=>()=>{N4==null||N4.current.abort()},[]);let[O0,yt]=xS(E1,N,_,N4.current,Z),qe=T.useCallback((V,y,k)=>{if(_1===void 0)return!0;let P=[V[0]-_,V[1]];return _1==null?void 0:_1(P,y,k)},[_,_1]),V5=T.useRef(L0),t4=T.useCallback((V,y)=>{y&&(V=yS(V,O0,_,J,N4.current)),W2!==void 0?(V5.current=it(V,-_),W2(V5.current)):n(V)},[W2,O0,_,J]),v5=Ze(Z4,T.useCallback((V,y,k,P)=>{Z4==null||Z4(x[k-_],y,k-_,P)},[Z4,_,x])),Bt=Ze(S0,T.useCallback((V,y,k,P)=>{S0==null||S0(x[k-_],y,k-_,P)},[S0,_,x])),n3=Ze(X0,T.useCallback((V,y,k,P)=>{X0==null||X0(x[k-_],y,k-_,P)},[X0,_,x])),r7=Ze(g1,T.useCallback(V=>{var y;return(y=g1==null?void 0:g1(j(S({},V),{columnIndex:V.columnIndex-_})))!=null?y:!1},[g1,_])),c3=T.useCallback(V=>{if(g2!==void 0){let y=g2(it(V,-_));return typeof y=="boolean"?y:it(y,_)}return!0},[g2,_]),[m0,F0,h0]=fS(W,t4,D1,n2,N1,A),z=T.useMemo(()=>S(S({},ld()),a3),[a3]),[G,B1]=T.useState([10,10,0]),C1=T.useCallback(V=>V.kind!==m1.Custom?HF[V.kind]:h4==null?void 0:h4.find(y=>y.isMatch(V)),[h4]),S1=vS(x,Z,yt,G[0]-(_===0?0:D5)-G[2],d5,Ae,z,C1,N4.current),l1=T.useMemo(()=>S1.some(V=>V.group!==void 0),[S1]),$1=l1?L5+t7:L5,p2=W.rows.length,M1=w==="none"?"":p2===0?od:p2===Z?sd:Cy,Z1=T.useMemo(()=>w==="none"?S1:[{title:M1,width:D5,icon:void 0,hasMenu:!1,style:"normal",themeOverride:f1},...S1],[S1,D5,w,M1,f1]),[w0,d2]=T.useMemo(()=>[V0!==void 0&&typeof M0=="number"?Math.floor(V0/M0):0,V0!==void 0&&typeof M0=="number"?-(V0%M0):0],[V0,M0]),E2=T.useRef({height:1,width:1,x:0,y:0}),Z2=T.useMemo(()=>{var V,y;return{x:E2.current.x,y:w0,width:(V=E2.current.width)!=null?V:1,height:(y=E2.current.height)!=null?y:1,ty:d2}},[d2,w0]),m2=T.useRef(!1),[k2,l4,G2]=Sy(Z2),R4=((l=k2.height)!=null?l:1)>1;T.useLayoutEffect(()=>{if(V0!==void 0&&H.current!==null&&R4){if(H.current.scrollTop===V0)return;H.current.scrollTop=V0,H.current.scrollTop!==V0&&G2(),m2.current=!0}},[V0,R4,G2]);let D4=((r=k2.width)!=null?r:1)>1;T.useLayoutEffect(()=>{if(i0!==void 0&&H.current!==null&&D4){if(H.current.scrollLeft===i0)return;H.current.scrollLeft=i0,H.current.scrollLeft!==i0&&G2(),m2.current=!0}},[i0,D4,G2]);let z4=k2.x+_,u4=k2.y,j1=T.useRef(null),Y2=T.useCallback(V=>{var y;V===!0?(y=j1.current)==null||y.focus():window.requestAnimationFrame(()=>{var k;(k=j1.current)==null||k.focus()})},[]),Q2=Z0?Z+1:Z,A0=T.useCallback(V=>{let y=_===0?V:V.map(P=>j(S({},P),{location:[P.location[0]-_,P.location[1]]})),k=T1==null?void 0:T1(y);if(k!==!0)for(let P of y)d1==null||d1(P.location,P.value);return k},[d1,T1,_]),C3=T.useMemo(()=>{if(s1!==void 0)return _===0?s1:s1.map(V=>{let y=Z1.length-V.range.x-_;if(!(y<=0))return{color:V.color,range:j(S({},V.range),{x:V.range.x+_,width:Math.min(y,V.range.width)}),style:V.style}}).filter(V=>V!==void 0)},[s1,Z1.length,_]),fs=T.useRef(Z1);fs.current=Z1;let k0=T.useCallback(([V,y],k=!1)=>{var P,K,X,$,Q,I,i1,w1,b1,J1;let u1=Z0&&y===Q2-1;if(V===0&&g4)return u1?ju:{kind:e5.Marker,allowOverlay:!1,checked:(W==null?void 0:W.rows.hasIndex(y))===!0,markerKind:w==="clickable-number"?"number":w,row:L1+y,drawHandle:i5!==void 0,cursor:w==="clickable-number"?"pointer":void 0};if(u1){let o2=V===_&&(P=R2==null?void 0:R2.hint)!=null?P:"",F1=fs.current[V];if(((K=F1==null?void 0:F1.trailingRowOptions)==null?void 0:K.disabled)===!0)return ju;{let H2=($=(X=F1==null?void 0:F1.trailingRowOptions)==null?void 0:X.hint)!=null?$:o2,b2=(I=(Q=F1==null?void 0:F1.trailingRowOptions)==null?void 0:Q.addIcon)!=null?I:R2==null?void 0:R2.addIcon;return{kind:e5.NewRow,hint:H2,allowOverlay:!1,icon:b2}}}else{let l2=V-_;if(k||(v2==null?void 0:v2.strict)===!0){let F1=E2.current,H2=F1.x>l2||l2>F1.x+F1.width||F1.y>y||y>F1.y+F1.height,b2=l2===((w1=(i1=F1.extras)==null?void 0:i1.selected)==null?void 0:w1[0])&&y===((b1=F1.extras)==null?void 0:b1.selected[1]),f2=((J1=F1.extras)==null?void 0:J1.freezeRegion)===void 0||F1.extras.freezeRegion.x>l2||l2>F1.extras.freezeRegion.x+F1.extras.freezeRegion.width||F1.extras.freezeRegion.y>y||y>F1.extras.freezeRegion.y+F1.extras.freezeRegion.height;if(H2&&!b2&&f2)return{kind:m1.Loading,allowOverlay:!1}}let o2=N([l2,y]);return _!==0&&o2.span!==void 0&&(o2=j(S({},o2),{span:[o2.span[0]+_,o2.span[1]+_]})),o2}},[Z0,Q2,g4,W==null?void 0:W.rows,i5,w,_,R2==null?void 0:R2.hint,R2==null?void 0:R2.addIcon,v2==null?void 0:v2.strict,N,L1]),St=T.useCallback(V=>{var y,k;let P=(y=z1==null?void 0:z1(V))!=null?y:{name:V};return r1!==void 0&&V!==""&&(P={icon:P.icon,name:P.name,overrideTheme:P.overrideTheme,actions:[...(k=P.actions)!=null?k:[],{title:"Rename",icon:"renameIcon",onClick:K=>bt({group:P.name,bounds:K.bounds})}]}),P},[z1,r1]),je=T.useCallback(V=>{var y;let[k,P]=V.cell,K=Z1[k],X=(K==null?void 0:K.group)!==void 0?(y=St(K.group))==null?void 0:y.overrideTheme:void 0,$=K==null?void 0:K.themeOverride,Q=v==null?void 0:v(P);C(j(S({},V),{theme:S(S(S(S(S({},z),X),$),Q),V.content.themeOverride)}))},[v,Z1,St,z]),m3=T.useCallback((V,y,k)=>{var P;if(W.current===void 0)return;let[K,X]=W.current.cell,$=k0([K,X]);if($.kind!==m1.Boolean&&$.allowOverlay){let Q=$;if(k!==void 0)switch(Q.kind){case m1.Number:{let I=ny(()=>k==="-"?-0:Number.parseFloat(k),0);Q=j(S({},Q),{data:Number.isNaN(I)?0:I});break}case m1.Text:case m1.Markdown:case m1.Uri:Q=j(S({},Q),{data:k});break}je({target:V,content:Q,initialValue:k,cell:[K,X],highlight:k===void 0,forceEditMode:k!==void 0})}else $.kind===m1.Boolean&&y&&$.readonly!==!0&&(A0([{location:W.current.cell,value:j(S({},$),{data:Pd($.data)})}]),(P=j1.current)==null||P.damage([{cell:W.current.cell}]))},[k0,W,A0,je]),xs=T.useCallback((V,y)=>{var k;let P=(k=j1.current)==null?void 0:k.getBounds(V,y);if(P===void 0||H.current===null)return;let K=k0([V,y]);K.allowOverlay&&je({target:P,content:K,initialValue:void 0,highlight:!0,cell:[V,y],forceEditMode:!0})},[k0,je]),J2=T.useCallback((V,y,k="both",P=0,K=0,X=void 0)=>{var $;if(H.current!==null){let Q=j1.current,I=h.current,i1=typeof V!="number"?V.unit==="cell"?V.amount:void 0:V,w1=typeof y!="number"?y.unit==="cell"?y.amount:void 0:y,b1=typeof V!="number"&&V.unit==="px"?V.amount:void 0,J1=typeof y!="number"&&y.unit==="px"?y.amount:void 0;if(Q!==null&&I!==null){let u1={x:0,y:0,width:0,height:0},R1=0,l2=0;if((i1!==void 0||w1!==void 0)&&(u1=($=Q.getBounds((i1!=null?i1:0)+_,w1!=null?w1:0))!=null?$:u1,u1.width===0||u1.height===0))return;let o2=I.getBoundingClientRect(),F1=o2.width/I.offsetWidth;if(b1!==void 0&&(u1=j(S({},u1),{x:b1-o2.left-H.current.scrollLeft,width:1})),J1!==void 0&&(u1=j(S({},u1),{y:J1+o2.top-H.current.scrollTop,height:1})),u1!==void 0){let H2={x:u1.x-P,y:u1.y-K,width:u1.width+2*P,height:u1.height+2*K},b2=0;for(let o0=0;o0H2.x?R1=H2.x-z2:a2H2.y?l2=H2.y-G1:S2{var k;let P=Z1[V];if(((k=P==null?void 0:P.trailingRowOptions)==null?void 0:k.disabled)===!0)return;let K=i2==null?void 0:i2(),X,$=!0;K!==void 0&&(X=await K,X==="top"&&($=!1),typeof X=="number"&&($=!1));let Q=0,I=()=>{if(Es.current<=Z){Q<500&&window.setTimeout(I,Q),Q=50+Q*2;return}let i1=typeof X=="number"?X:$?Z:0;J2(V-_,i1),m0({cell:[V,i1],range:{x:V,y:i1,width:1,height:1}},!1,!1,"edit");let w1=Zs.current([V-_,i1]);w1.allowOverlay&&Y7(w1)&&w1.readonly!==!0&&y&&window.setTimeout(()=>{Ms.current(V,i1)},0)};I()},[Z1,i2,_,Z,J2,m0]),Ge=T.useCallback(V=>{var y,k,P;let K=(P=(k=(y=S1[V])==null?void 0:y.trailingRowOptions)==null?void 0:k.targetColumn)!=null?P:R2==null?void 0:R2.targetColumn;if(typeof K=="number")return K+(g4?1:0);if(typeof K=="object"){let X=x.indexOf(K);if(X>=0)return X+(g4?1:0)}},[S1,x,g4,R2==null?void 0:R2.targetColumn]),I5=T.useRef(),s7=T.useRef(),h3=T.useCallback((V,y)=>{var k;let[P,K]=y;return S(S(S(S({},z),(k=Z1[P])==null?void 0:k.themeOverride),v==null?void 0:v(K)),V.themeOverride)},[v,Z1,z]),w3=T.useCallback(V=>{var y,k,P,K;let X=ct.value?V.metaKey:V.ctrlKey,$=X&&k1==="multi",Q=X&&D==="multi",[I,i1]=V.location,w1=W.columns,b1=W.rows,[J1,u1]=(k=(y=W.current)==null?void 0:y.cell)!=null?k:[];if(V.kind==="cell"){if(s7.current=void 0,Z9.current=[I,i1],I===0&&g4){if(Z0===!0&&i1===Z||w==="number"||k1==="none")return;let R1=k0(V.location);if(R1.kind!==e5.Marker)return;if(i5!==void 0){let F1=C1(R1);n4((F1==null?void 0:F1.kind)===e5.Marker);let H2=(P=F1==null?void 0:F1.onClick)==null?void 0:P.call(F1,j(S({},V),{cell:R1,posX:V.localEventX,posY:V.localEventY,bounds:V.bounds,theme:h3(R1,V.location),preventDefault:()=>{}}));if(H2===void 0||H2.checked===R1.checked)return}C(void 0),Y2();let l2=b1.hasIndex(i1),o2=I5.current;if(k1==="multi"&&(V.shiftKey||V.isLongTouch===!0)&&o2!==void 0&&b1.hasIndex(o2)){let F1=[Math.min(o2,i1),Math.max(o2,i1)+1];$||o1==="multi"?F0(void 0,F1,!0):F0(N2.fromSingleSelection(F1),void 0,$)}else $||V.isTouch||o1==="multi"?l2?F0(b1.remove(i1),void 0,!0):(F0(void 0,i1,!0),I5.current=i1):l2&&b1.length===1?F0(N2.empty(),void 0,X):(F0(N2.fromSingleSelection(i1),void 0,X),I5.current=i1)}else if(I>=_&&Z0&&i1===Z){let R1=Ge(I);i7(R1!=null?R1:I)}else if(J1!==I||u1!==i1){let R1=k0(V.location),l2=C1(R1);if((l2==null?void 0:l2.onSelect)!==void 0){let H2=!1;if(l2.onSelect(j(S({},V),{cell:R1,posX:V.localEventX,posY:V.localEventY,bounds:V.bounds,preventDefault:()=>H2=!0,theme:h3(R1,V.location)})),H2)return}let o2=E4&&i1===Z,F1=E4&&W!==void 0&&((K=W.current)==null?void 0:K.cell[1])===Z;if((V.shiftKey||V.isLongTouch===!0)&&J1!==void 0&&u1!==void 0&&W.current!==void 0&&!F1){if(o2)return;let H2=Math.min(I,J1),b2=Math.max(I,J1),f2=Math.min(i1,u1),z2=Math.max(i1,u1);m0(j(S({},W.current),{range:{x:H2,y:f2,width:b2-H2+1,height:z2-f2+1}}),!0,X,"click"),I5.current=void 0,Y2()}else m0({cell:[I,i1],range:{x:I,y:i1,width:1,height:1}},!0,X,"click"),I5.current=void 0,C(void 0),Y2()}}else if(V.kind==="header")if(Z9.current=[I,i1],C(void 0),g4&&I===0)I5.current=void 0,s7.current=void 0,k1==="multi"&&(b1.length!==Z?F0(N2.fromSingleSelection([0,Z]),void 0,X):F0(N2.empty(),void 0,X),Y2());else{let R1=s7.current;if(D==="multi"&&(V.shiftKey||V.isLongTouch===!0)&&R1!==void 0&&w1.hasIndex(R1)){let l2=[Math.min(R1,I),Math.max(R1,I)+1];Q?h0(void 0,l2,X):h0(N2.fromSingleSelection(l2),void 0,X)}else Q?(w1.hasIndex(I)?h0(w1.remove(I),void 0,X):h0(void 0,I,X),s7.current=I):D!=="none"&&(h0(N2.fromSingleSelection(I),void 0,X),s7.current=I);I5.current=void 0,Y2()}else V.kind===x4?Z9.current=[I,i1]:V.kind===ut&&!V.isMaybeScrollbar&&(t4(st,!1),C(void 0),Y2(),L2==null||L2(),I5.current=void 0,s7.current=void 0)},[i7,D,Y2,C1,Ge,k0,W,g4,E4,L2,i5,_,w,k1,o1,Z,m0,t4,h0,F0,Z0,h3]),Ft=T.useRef(!1),Z9=T.useRef(),Ns=T.useRef(k2),d4=T.useRef(),MH=T.useCallback(V=>{var y,k;if(o7.current=!1,Ns.current=E2.current,V.button!==0&&V.button!==1){d4.current=void 0;return}let P=performance.now(),K=P-((k=(y=d4.current)==null?void 0:y.time)!=null?k:-1e3)<250;d4.current={wasDoubleClick:K,button:V.button,time:P,location:V.location},(V==null?void 0:V.kind)==="header"&&(Ft.current=!0);let X=V.kind==="cell"&&V.isFillHandle;!X&&V.kind!=="cell"&&V.isEdge||(d({previousSelection:W,fillHandle:X}),Z9.current=void 0,!V.isTouch&&V.button===0?w3(V):!V.isTouch&&V.button===1&&(Z9.current=V.location))},[W,w3]),[kt,bt]=T.useState(),Rs=T.useCallback(V=>{if(V.kind!==x4||D!=="multi")return;let y=ct.value?V.metaKey:V.ctrlKey,[k]=V.location,P=W.columns;if(k<_)return;let K=Z1[k],X=k,$=k;for(let Q=k-1;Q>=_&&Fe(K.group,Z1[Q].group);Q--)X--;for(let Q=k+1;Q{var y;if(W.current===void 0)return;let k=[],P=W.current.range;for(let K=0;K({cell:K.location})))},[k0,W,A0]),o7=T.useRef(!1),Xe=T.useCallback(async(V,y=!1)=>{var k;if((((k=d4.current)==null?void 0:k.wasDoubleClick)===!0||y)&&O0!==void 0&&v5!==void 0){let P=E2.current.y,K=E2.current.height,X=O0({x:V,y:P,width:1,height:Math.min(K,Z-P)},N4.current.signal);typeof X!="object"&&(X=await X());let $=S1[V-_],I=document.createElement("canvas").getContext("2d",{alpha:!1});if(I!==null){I.font=`${z.baseFontStyle} ${z.fontFamily}`;let i1=bd(I,z,$,0,X,d5,P5,!1,C1);v5==null||v5($,i1.width,V,i1.width)}}},[S1,O0,P5,z,d5,v5,_,Z,C1]),[ZH,zs]=T.useState(),EH=T.useCallback((V,y)=>{var k,P,K;let X=u;if(d(void 0),zs(void 0),Ft.current=!1,y)return;if((X==null?void 0:X.fillHandle)===!0&&W.current!==void 0){Ke(W.current.cell[1]!==W.current.range.y);return}let[$,Q]=V.location,[I,i1]=(k=Z9.current)!=null?k:[],w1=()=>{o7.current=!0},b1=u1=>{var R1,l2,o2;let F1=u1.isTouch||I===$&&i1===Q;if(F1&&(F==null||F([$-_,Q],j(S({},u1),{preventDefault:w1}))),u1.button===1)return!o7.current;if(!o7.current){let H2=k0(V.location),b2=C1(H2);if(b2!==void 0&&b2.onClick!==void 0&&F1){let f2=b2.onClick(j(S({},u1),{cell:H2,posX:u1.localEventX,posY:u1.localEventY,bounds:u1.bounds,theme:h3(H2,V.location),preventDefault:w1}));f2!==void 0&&!u9(f2)&&k5(f2)&&(A0([{location:u1.location,value:f2}]),(R1=j1.current)==null||R1.damage([{cell:u1.location}]))}if(!o7.current&&((o2=(l2=X==null?void 0:X.previousSelection)==null?void 0:l2.current)==null?void 0:o2.cell)!==void 0&&W.current!==void 0){let[f2,z2]=W.current.cell,[a2,G1]=X.previousSelection.current.cell;if($===f2&&$===a2&&Q===z2&&Q===G1)return b==null||b([$-_,Q]),m3(u1.bounds,!1),!0}}return!1},J1=V.location[0]-_;if(V.isTouch){let u1=E2.current,R1=Ns.current;if(u1.x!==R1.x||u1.y!==R1.y)return;if(V.isLongTouch===!0){if(V.kind==="cell"&&((P=W==null?void 0:W.current)==null?void 0:P.cell[0])===$&&((K=W==null?void 0:W.current)==null?void 0:K.cell[1])===Q){O==null||O([J1,V.location[1]],j(S({},V),{preventDefault:w1}));return}else if(V.kind==="header"&&W.columns.hasIndex($)){q==null||q(J1,j(S({},V),{preventDefault:w1}));return}else if(V.kind===x4){if(J1<0)return;c1==null||c1(J1,j(S({},V),{preventDefault:w1}));return}}V.kind==="cell"?b1(V)||w3(V):V.kind===x4?n1==null||n1(J1,j(S({},V),{preventDefault:w1})):(V.kind===g9&&(h1==null||h1(J1,j(S({},V),{preventDefault:w1}))),w3(V));return}if(V.kind==="header"){if(J1<0)return;V.isEdge?Xe($):V.button===0&&$===I&&Q===i1&&(h1==null||h1(J1,j(S({},V),{preventDefault:w1})))}if(V.kind===x4){if(J1<0)return;V.button===0&&$===I&&Q===i1&&(n1==null||n1(J1,j(S({},V),{preventDefault:w1})),o7.current||Rs(V))}V.kind==="cell"&&(V.button===0||V.button===1)&&b1(V),Z9.current=void 0},[u,_,W,F,Ke,k0,C1,h3,A0,b,m3,O,q,c1,w3,n1,Xe,h1,Rs]),NH=T.useCallback(V=>{let y=j(S({},V),{location:[V.location[0]-_,V.location[1]]});Q1==null||Q1(y),zs(k=>{var P,K;return Ft.current?[V.scrollEdge[0],0]:V.scrollEdge[0]===(k==null?void 0:k[0])&&V.scrollEdge[1]===k[1]?k:u===void 0||((K=(P=d4.current)==null?void 0:P.location[0])!=null?K:0)<_?void 0:V.scrollEdge})},[u,Q1,_]);DS(ZH,H);let RH=T.useCallback((V,y)=>{x1==null||x1(V-_,y)},[x1,_]),p5=(i=W==null?void 0:W.current)==null?void 0:i.cell,zH=T.useCallback((V,y,k,P,K,X)=>{m2.current=!1;let $=p5;$!==void 0&&($=[$[0]-_,$[1]]);let Q={x:V.x-_,y:V.y,width:V.width,height:Z0&&V.y+V.height>=Z?V.height-1:V.height,tx:K,ty:X,extras:{selected:$,freezeRegion:s2===0?void 0:{x:0,y:V.y,width:s2,height:V.height}}};E2.current=Q,l4(Q),B1([y,k,P]),H0==null||H0(Q,Q.tx,Q.ty,Q.extras)},[p5,_,Z0,Z,s2,l4,H0]),yH=Ze(I1,T.useCallback((V,y)=>{I1==null||I1(V-_,y-_),D!=="none"&&h0(N2.fromSingleSelection(y),void 0,!0)},[D,I1,_,h0])),_t=T.useRef(!1),BH=T.useCallback(V=>{if(V.location[0]===0&&_>0){V.preventDefault();return}Y1==null||Y1(j(S({},V),{location:[V.location[0]-_,V.location[1]]})),V.defaultPrevented()||(_t.current=!0),d(void 0)},[Y1,_]),SH=T.useCallback(()=>{_t.current=!1},[]),FH=T.useCallback(V=>{var y,k;if(!(((y=d4==null?void 0:d4.current)==null?void 0:y.button)!==void 0&&d4.current.button>=1)){if(u!==void 0&&((k=d4.current)==null?void 0:k.location[0])===0&&V.location[0]===0&&_===1&&k1==="multi"&&u.previousSelection&&!u.previousSelection.rows.hasIndex(d4.current.location[1])&&W.rows.hasIndex(d4.current.location[1])){let P=Math.min(d4.current.location[1],V.location[1]),K=Math.max(d4.current.location[1],V.location[1])+1;F0(N2.fromSingleSelection([P,K]),void 0,!1)}if(u!==void 0&&W.current!==void 0&&!_t.current&&(A==="rect"||A==="multi-rect")){let[P,K]=W.current.cell,[X,$]=V.location;if($<0&&($=E2.current.y),E4&&K===Z)return;if(E4&&$===Z)if(V.kind===ut)$--;else return;X=Math.max(X,_);let i1=X-P,w1=$-K,b1={x:i1>=0?P:X,y:w1>=0?K:$,width:Math.abs(i1)+1,height:Math.abs(w1)+1};m0(j(S({},W.current),{range:b1}),!0,!1,"drag")}A2==null||A2(j(S({},V),{location:[V.location[0]-_,V.location[1]]}))}},[u,_,k1,W,A,A2,F0,E4,Z,m0]),E9=T.useCallback(V=>{if(W.current===void 0)return;let[y,k]=V,[P,K]=W.current.cell,X=W.current.range,$=X.x,Q=X.x+X.width,I=X.y,i1=X.y+X.height;if(k!==0)switch(k){case 2:{i1=Z,I=K,J2(0,i1,"vertical");break}case-2:{I=0,i1=K+1,J2(0,I,"vertical");break}case 1:{IK+1?(i1--,J2(0,i1,"vertical")):(I=Math.max(0,I-1),J2(0,I,"vertical"));break}default:Be(k)}if(y!==0)if(y===2)Q=Z1.length,$=P,J2(Q-1-_,0,"horizontal");else if(y===-2)$=_,Q=P+1,J2($-_,0,"horizontal");else{let w1=[];if(O0!==void 0){let b1=O0({x:$,y:I,width:Q-$-_,height:i1-I},N4.current.signal);typeof b1=="object"&&(w1=vF(b1))}if(y===1){let b1=!1;if($0){let J1=(0,K9.default)($+1,P+1).find(u1=>!w1.includes(u1-_));J1!==void 0&&($=J1,b1=!0)}else $++,b1=!0;b1&&J2($,0,"horizontal")}b1||(Q=Math.min(Z1.length,Q+1),J2(Q-1-_,0,"horizontal"))}else if(y===-1){let b1=!1;if(Q>P+1){if(w1.length>0){let J1=(0,K9.default)(Q-1,P,-1).find(u1=>!w1.includes(u1-_));J1!==void 0&&(Q=J1,b1=!0)}else Q--,b1=!0;b1&&J2(Q-_,0,"horizontal")}b1||($=Math.max(_,$-1),J2($-_,0,"horizontal"))}else Be(y)}m0({cell:W.current.cell,range:{x:$,y:I,width:Q-$,height:i1-I}},!0,!1,"keyboard-select")},[O0,W,Z1.length,_,Z,J2,m0]),O5=T.useCallback((V,y,k,P)=>{let K=Q2-(k?0:1);if(V=(0,Ne.default)(V,_,S1.length-1+_),y=(0,Ne.default)(y,0,K),V===(p5==null?void 0:p5[0])&&y===(p5==null?void 0:p5[1]))return!1;if(P&&W.current!==void 0){let X=[...W.current.rangeStack];(W.current.range.width>1||W.current.range.height>1)&&X.push(W.current.range),t4(j(S({},W),{current:{cell:[V,y],range:{x:V,y,width:1,height:1},rangeStack:X}}),!0)}else m0({cell:[V,y],range:{x:V,y,width:1,height:1}},!0,!1,"keyboard-nav");return f.current!==void 0&&f.current[0]===V&&f.current[1]===y&&(f.current=void 0),J2(V-_,y),!0},[Q2,_,S1.length,p5,W,J2,t4,m0]),kH=T.useCallback((V,y)=>{(c==null?void 0:c.cell)!==void 0&&V!==void 0&&k5(V)&&(A0([{location:c.cell,value:V}]),window.requestAnimationFrame(()=>{var K;(K=j1.current)==null||K.damage([{cell:c.cell}])})),Y2(!0),C(void 0);let[k,P]=y;if(W.current!==void 0&&(k!==0||P!==0)){let K=W.current.cell[1]===Q2-1&&V!==void 0;O5((0,Ne.default)(W.current.cell[0]+k,0,Z1.length-1),(0,Ne.default)(W.current.cell[1]+P,0,Q2-1),K,!1)}B==null||B(V,y)},[c==null?void 0:c.cell,Y2,W,B,A0,Q2,O5,Z1.length]),Pt=T.useMemo(()=>`gdg-overlay-${VF++}`,[]),N9=T.useCallback(V=>{var y,k,P,K;Y2();let X=[];for(let $=V.x;$({cell:$.location})))},[Y2,N,C1,A0,_]),g3=T.useCallback(V=>{(async()=>{var k,P,K,X,$;let Q=!1;if(t2!==void 0&&t2(j(S({},V),{cancel:()=>{Q=!0}})),Q)return;let I=()=>{V.stopPropagation(),V.preventDefault()},i1=c!==void 0,{altKey:w1,shiftKey:b1,metaKey:J1,ctrlKey:u1,key:R1,bounds:l2}=V,o2=ct.value,F1=o2?J1:u1,H2=R1==="Delete"||o2&&R1==="Backspace",b2=E2.current,f2=W.columns,z2=W.rows;if(R1==="Escape"){i1?C(void 0):M2.clear&&(t4(st,!1),L2==null||L2());return}else if(D0("primary+a",V)&&M2.selectAll){if(!i1)t4({columns:N2.empty(),rows:N2.empty(),current:{cell:(P=(k=W.current)==null?void 0:k.cell)!=null?P:[_,0],range:{x:_,y:0,width:x.length,height:Z},rangeStack:[]}},!1);else{let F2=document.getElementById(Pt);if(F2!==null){let o0=window.getSelection(),b0=document.createRange();b0.selectNodeContents(F2),o0==null||o0.removeAllRanges(),o0==null||o0.addRange(b0)}}I();return}else D0("primary+f",V)&&M2.search&&(I(),(K=m==null?void 0:m.current)==null||K.focus({preventScroll:!0}),Ue(!0));if(H2){let F2=(X=c3==null?void 0:c3(W))!=null?X:!0;if(I(),F2!==!1){let o0=F2===!0?W:F2;if(o0.current!==void 0){N9(o0.current.range);for(let b0 of o0.current.rangeStack)N9(b0)}for(let b0 of o0.rows)N9({x:_,y:b0,width:Z1.length-_,height:1});for(let b0 of o0.columns)N9({x:b0,y:0,width:1,height:Z})}return}if(W.current===void 0)return;let[a2,G1]=W.current.cell,S2=!1;if(M2.selectColumn&&D0("ctrl+ ",V)&&D!=="none")f2.hasIndex(a2)?h0(f2.remove(a2),void 0,!0):D==="single"?h0(N2.fromSingleSelection(a2),void 0,!0):h0(void 0,a2,!0);else if(M2.selectRow&&D0("shift+ ",V)&&k1!=="none")z2.hasIndex(G1)?F0(z2.remove(G1),void 0,!0):k1==="single"?F0(N2.fromSingleSelection(G1),void 0,!0):F0(void 0,G1,!0);else if((D0("Enter",V)||D0(" ",V)||D0("shift+Enter",V))&&l2!==void 0)i1?(C(void 0),D0("Enter",V)?G1++:D0("shift+Enter",V)&&G1--):G1===Z&&Z0?window.setTimeout(()=>{let F2=Ge(a2);i7(F2!=null?F2:a2)},0):(b==null||b([a2-_,G1]),m3(l2,!0),I());else if(M2.downFill&&D0("primary+_68",V)&&W.current.range.height>1)Ke(!1),I();else if(M2.rightFill&&D0("primary+_82",V)&&W.current.range.width>1){let F2=[],o0=W.current.range;for(let b0=0;b0({cell:b0.location}))),I()}else if(M2.pageDown&&D0("PageDown",V))G1+=Math.max(1,E2.current.height-4),I();else if(M2.pageUp&&D0("PageUp",V))G1-=Math.max(1,E2.current.height-4),I();else if(M2.first&&D0("primary+Home",V))C(void 0),G1=0,a2=0;else if(M2.last&&D0("primary+End",V))C(void 0),G1=Number.MAX_SAFE_INTEGER,a2=Number.MAX_SAFE_INTEGER;else if(M2.first&&D0("primary+shift+Home",V))C(void 0),E9([-2,-2]);else if(M2.last&&D0("primary+shift+End",V))C(void 0),E9([2,2]);else if(R1==="ArrowDown"){if(u1&&w1)return;C(void 0),b1&&(A==="rect"||A==="multi-rect")?E9([0,F1&&!w1?2:1]):(w1&&!F1&&(S2=!0),F1&&!w1?G1=Z-1:G1+=1)}else if(R1==="ArrowUp"||R1==="Home"){let F2=R1==="Home"||F1;C(void 0),b1&&(A==="rect"||A==="multi-rect")?E9([0,F2&&!w1?-2:-1]):(w1&&!F2&&(S2=!0),G1+=F2&&!w1?Number.MIN_SAFE_INTEGER:-1)}else if(R1==="ArrowRight"||R1==="End"){let F2=R1==="End"||F1;C(void 0),b1&&(A==="rect"||A==="multi-rect")?E9([F2&&!w1?2:1,0]):(w1&&!F2&&(S2=!0),a2+=F2&&!w1?Number.MAX_SAFE_INTEGER:1)}else if(R1==="ArrowLeft")C(void 0),b1&&(A==="rect"||A==="multi-rect")?E9([F1&&!w1?-2:-1,0]):(w1&&!F1&&(S2=!0),a2+=F1&&!w1?Number.MIN_SAFE_INTEGER:-1);else if(R1==="Tab")C(void 0),b1?a2--:a2++;else if(!J1&&!u1&&W.current!==void 0&&R1.length===1&&/[ -~]/g.test(R1)&&l2!==void 0&&Y7(N([a2-_,Math.max(0,Math.min(G1,Z-1))]))){if((!E4||G1!==Z)&&(b2.y>G1||G1>b2.y+b2.height||b2.x>a2||a2>b2.x+b2.width))return;m3(l2,!0,R1),I()}O5(a2,G1,!1,S2)&&I()})()},[t2,N9,c,W,M2.selectAll,M2.search,M2.selectColumn,M2.selectRow,M2.downFill,M2.rightFill,M2.pageDown,M2.pageUp,M2.first,M2.last,M2.clear,D,k1,N,_,O5,t4,L2,x.length,Z,Pt,A0,c3,Z1.length,h0,F0,Z0,Ge,i7,b,m3,Ke,k0,E9,A,E4]),bH=T.useCallback((V,y)=>{let k=V.location[0]-_;if(V.kind==="header"&&(q==null||q(k,j(S({},V),{preventDefault:y}))),V.kind===x4){if(k<0)return;c1==null||c1(k,j(S({},V),{preventDefault:y}))}if(V.kind==="cell"){let[P,K]=V.location;O==null||O([k,K],j(S({},V),{preventDefault:y})),cy(W,V.location)||O5(P,K,!1,!1)}},[W,O,c1,q,_,O5]),Tt=T.useCallback(async V=>{var y,k,P,K,X,$,Q;if(!M2.paste)return;function I(u1,R1,l2,o2){var F1,H2,b2,f2;let z2=typeof l2=="object"?(F1=l2==null?void 0:l2.join(` -`))!=null?F1:"":(H2=l2==null?void 0:l2.toString())!=null?H2:"";if(!u9(u1)&&Y7(u1)&&u1.readonly!==!0){let a2=U==null?void 0:U(z2,u1);if(a2!==void 0&&k5(a2))return a2.kind!==u1.kind&&console.warn("Coercion should not change cell kind."),{location:R1,value:a2};let G1=C1(u1);if(G1===void 0)return;if(G1.kind===m1.Custom){n4(u1.kind===m1.Custom);let S2=(b2=G1.onPaste)==null?void 0:b2.call(G1,z2,u1.data);return S2===void 0?void 0:{location:R1,value:j(S({},u1),{data:S2})}}else{let S2=(f2=G1.onPaste)==null?void 0:f2.call(G1,z2,u1,{formatted:o2,formattedString:typeof o2=="string"?o2:o2==null?void 0:o2.join(` -`),rawValue:l2});return S2===void 0?void 0:(n4(S2.kind===u1.kind),{location:R1,value:S2})}}}let i1=W.columns,w1=W.rows,b1=((y=H.current)==null?void 0:y.contains(document.activeElement))===!0||((k=h.current)==null?void 0:k.contains(document.activeElement))===!0,J1=(P=W.current)==null?void 0:P.cell;if(J1===void 0&&i1.length===1&&(J1=[(K=i1.first())!=null?K:0,0]),J1===void 0&&w1.length===1&&(J1=[_,(X=w1.first())!=null?X:0]),b1&&J1!==void 0){let u1,R1,l2="text/plain",o2="text/html";if(navigator.clipboard.read!==void 0){let f2=await navigator.clipboard.read();for(let z2 of f2){if(z2.types.includes(o2)){let G1=await(await z2.getType(o2)).text(),S2=Du(G1);if(S2!==void 0){u1=S2;break}}z2.types.includes(l2)&&(R1=await(await z2.getType(l2)).text())}}else if(navigator.clipboard.readText!==void 0)R1=await navigator.clipboard.readText();else if(V!==void 0&&(V==null?void 0:V.clipboardData)!==null){if(V.clipboardData.types.includes(o2)){let f2=V.clipboardData.getData(o2);u1=Du(f2)}u1===void 0&&V.clipboardData.types.includes(l2)&&(R1=V.clipboardData.getData(l2))}else return;let[F1,H2]=J1,b2=[];do{if(C2===void 0){let f2=k0(J1),z2=($=R1!=null?R1:u1==null?void 0:u1.map(G1=>G1.map(S2=>S2.rawValue).join(" ")).join(" "))!=null?$:"",a2=I(f2,J1,z2,void 0);a2!==void 0&&b2.push(a2);break}if(u1===void 0){if(R1===void 0)return;u1=BS(R1)}if(C2===!1||typeof C2=="function"&&(C2==null?void 0:C2([J1[0]-_,J1[1]],u1.map(f2=>f2.map(z2=>{var a2,G1;return(G1=(a2=z2.rawValue)==null?void 0:a2.toString())!=null?G1:""}))))!==!0)return;for(let[f2,z2]of u1.entries()){if(f2+H2>=Z)break;for(let[a2,G1]of z2.entries()){let S2=[a2+F1,f2+H2],[R9,F2]=S2;if(R9>=Z1.length||F2>=Q2)continue;let o0=k0(S2),b0=I(o0,S2,G1.rawValue,G1.formatted);b0!==void 0&&b2.push(b0)}}}while(!1);A0(b2),(Q=j1.current)==null||Q.damage(b2.map(f2=>({cell:f2.location})))}},[U,C1,k0,W,M2.paste,Z1.length,A0,Q2,C2,_,Z]);I0("paste",Tt,window,!1,!0);let u3=T.useCallback(async(V,y)=>{var k,P;if(!M2.copy)return;let K=y===!0||((k=H.current)==null?void 0:k.contains(document.activeElement))===!0||((P=h.current)==null?void 0:P.contains(document.activeElement))===!0,X=W.columns,$=W.rows,Q=(I,i1)=>{if(!u2)Ou(I,i1,V);else{let w1=i1.map(b1=>({kind:m1.Text,data:x[b1].title,displayData:x[b1].title,allowOverlay:!1}));Ou([w1,...I],i1,V)}};if(K&&O0!==void 0){if(W.current!==void 0){let I=O0(W.current.range,N4.current.signal);typeof I!="object"&&(I=await I()),Q(I,(0,K9.default)(W.current.range.x-_,W.current.range.x+W.current.range.width-_))}else if($!==void 0&&$.length>0){let i1=[...$].map(w1=>{let b1=O0({x:_,y:w1,width:x.length,height:1},N4.current.signal);return typeof b1=="object"?b1[0]:b1().then(J1=>J1[0])});if(i1.some(w1=>w1 instanceof Promise)){let w1=await Promise.all(i1);Q(w1,(0,K9.default)(x.length))}else Q(i1,(0,K9.default)(x.length))}else if(X.length>0){let I=[],i1=[];for(let w1 of X){let b1=O0({x:w1,y:0,width:1,height:Z},N4.current.signal);typeof b1!="object"&&(b1=await b1()),I.push(b1),i1.push(w1-_)}if(I.length===1)Q(I[0],i1);else{let w1=I.reduce((b1,J1)=>b1.map((u1,R1)=>[...u1,...J1[R1]]));Q(w1,i1)}}}},[x,O0,W,M2.copy,_,Z,u2]);I0("copy",u3,window,!1,!1);let _H=T.useCallback(async V=>{var y,k;!M2.cut||!(((y=H.current)==null?void 0:y.contains(document.activeElement))===!0||((k=h.current)==null?void 0:k.contains(document.activeElement))===!0)||(await u3(V),W.current!==void 0&&N9(W.current.range))},[N9,W,M2.cut,u3]);I0("cut",_H,window,!1,!1);let PH=T.useCallback((V,y)=>{if(e2!==void 0){_!==0&&(V=V.map(K=>[K[0]-_,K[1]])),e2(V,y);return}if(V.length===0||y===-1)return;let[k,P]=V[y];f.current!==void 0&&f.current[0]===k&&f.current[1]===P||(f.current=[k,P],O5(k,P,!1,!1))},[e2,_,O5]),[Ye,Qe]=(o=(s=L0==null?void 0:L0.current)==null?void 0:s.cell)!=null?o:[],ys=T.useRef(J2);ys.current=J2,T.useLayoutEffect(()=>{var V,y,k,P;!m2.current&&Ye!==void 0&&Qe!==void 0&&(Ye!==((y=(V=V5.current)==null?void 0:V.current)==null?void 0:y.cell[0])||Qe!==((P=(k=V5.current)==null?void 0:k.current)==null?void 0:P.cell[1]))&&ys.current(Ye,Qe),m2.current=!1},[Ye,Qe]);let Bs=W.current!==void 0&&(W.current.cell[0]>=Z1.length||W.current.cell[1]>=Q2);T.useLayoutEffect(()=>{Bs&&t4(st,!1)},[Bs,t4]);let TH=T.useMemo(()=>Z0===!0&&(R2==null?void 0:R2.tint)===!0?N2.fromSingleSelection(Q2-1):N2.empty(),[Q2,Z0,R2==null?void 0:R2.tint]),DH=T.useCallback(V=>{var y;return typeof r5=="boolean"?r5:(y=r5==null?void 0:r5(V-_))!=null?y:!0},[_,r5]),IH=T.useMemo(()=>{if(kt===void 0||h.current===null)return null;let{bounds:V,group:y}=kt,k=h.current.getBoundingClientRect();return T.createElement(LS,{bounds:V,group:y,canvasBounds:k,onClose:()=>bt(void 0),onFinish:P=>{bt(void 0),r1==null||r1(y,P)}})},[r1,kt]),OH=Math.min(Z1.length,s2+(g4?1:0));T.useImperativeHandle(t,()=>({appendRow:(V,y)=>i7(V+_,y),updateCells:V=>{var y;return _!==0&&(V=V.map(k=>({cell:[k.cell[0]+_,k.cell[1]]}))),(y=j1.current)==null?void 0:y.damage(V)},getBounds:(V,y)=>{var k;if(!((h==null?void 0:h.current)===null||(H==null?void 0:H.current)===null)){if(V===void 0&&y===void 0){let P=h.current.getBoundingClientRect(),K=P.width/H.current.clientWidth;return{x:P.x-H.current.scrollLeft*K,y:P.y-H.current.scrollTop*K,width:H.current.scrollWidth*K,height:H.current.scrollHeight*K}}return(k=j1.current)==null?void 0:k.getBounds(V!=null?V:0+_,y)}},focus:()=>{var V;return(V=j1.current)==null?void 0:V.focus()},emit:async V=>{switch(V){case"delete":g3({bounds:void 0,cancel:()=>{},stopPropagation:()=>{},preventDefault:()=>{},ctrlKey:!1,key:"Delete",keyCode:46,metaKey:!1,shiftKey:!1,altKey:!1,rawEvent:void 0,location:void 0});break;case"fill-right":g3({bounds:void 0,cancel:()=>{},stopPropagation:()=>{},preventDefault:()=>{},ctrlKey:!0,key:"r",keyCode:82,metaKey:!1,shiftKey:!1,altKey:!1,rawEvent:void 0,location:void 0});break;case"fill-down":g3({bounds:void 0,cancel:()=>{},stopPropagation:()=>{},preventDefault:()=>{},ctrlKey:!0,key:"d",keyCode:68,metaKey:!1,shiftKey:!1,altKey:!1,rawEvent:void 0,location:void 0});break;case"copy":await u3(void 0,!0);break;case"paste":await Tt();break}},scrollTo:J2,remeasureColumns:V=>{for(let y of V)Xe(y+_,!0)}}),[i7,Xe,u3,g3,Tt,_,J2]);let[Ss,Fs]=p5!=null?p5:[],AH=T.useCallback(V=>{let[y,k]=V;if(k===-1){D!=="none"&&(h0(N2.fromSingleSelection(y),void 0,!1),Y2());return}Ss===y&&Fs===k||(m0({cell:V,range:{x:y,y:k,width:1,height:1}},!0,!1,"keyboard-nav"),J2(y,k))},[D,Y2,J2,Ss,Fs,m0,h0]),[WH,$H]=T.useState(!1),ks=T.useRef((0,Xu.default)(V=>{$H(V)},5)),UH=T.useCallback(()=>{ks.current(!0),W.current===void 0&&W.columns.length===0&&W.rows.length===0&&u===void 0&&m0({cell:[_,u4],range:{x:_,y:u4,width:1,height:1}},!0,!1,"keyboard-select")},[u4,W,u,_,m0]),qH=T.useCallback(()=>{ks.current(!1)},[]),[jH,GH]=T.useMemo(()=>{var V;let y,k=(V=v2==null?void 0:v2.scrollbarWidthOverride)!=null?V:Ji(),P=Z+(Z0?1:0);if(typeof M0=="number")y=$1+P*M0;else{let X=0,$=Math.min(P,10);for(let Q=0;Q<$;Q++)X+=M0(Q);X=Math.floor(X/$),y=$1+P*X}y+=k;let K=Z1.reduce((X,$)=>$.width+X,0)+k;return[`${Math.min(1e5,K)}px`,`${Math.min(1e5,y)}px`]},[Z1,v2==null?void 0:v2.scrollbarWidthOverride,M0,Z,Z0,$1]);return T.createElement(rd.Provider,{value:z},T.createElement(bS,{style:ed(z),className:a1,inWidth:E!=null?E:jH,inHeight:p!=null?p:GH},T.createElement(uS,{fillHandle:T4,drawFocusRing:s0,experimental:v2,fixedShadowX:X2,fixedShadowY:v9,getRowThemeOverride:v,headerIcons:w4,imageWindowLoader:Te,initialSize:i3,isDraggable:p9,onDragLeave:f9,onRowMoved:i5,overscrollX:$e,overscrollY:Et,preventDiagonalScrolling:u5,rightElement:pt,rightElementProps:De,showMinimap:ft,smoothScrollX:Ie,smoothScrollY:e7,className:a1,enableGroups:l1,onCanvasFocused:UH,onCanvasBlur:qH,canvasRef:h,onContextMenu:bH,theme:z,cellXOffset:z4,cellYOffset:u4,accessibilityHeight:k2.height,onDragEnd:SH,columns:Z1,drawCustomCell:H1,drawHeader:r7,disabledRows:TH,freezeColumns:OH,lockColumns:_,firstColAccessible:_===0,getCellContent:k0,minColumnWidth:d5,maxColumnWidth:P5,searchInputRef:m,showSearch:Rt,onSearchClose:zt,highlightRegions:C3,getCellsForSelection:O0,getGroupDetails:St,headerHeight:L5,isFocused:WH,groupHeaderHeight:l1?t7:0,trailingRowType:Z0?(R2==null?void 0:R2.sticky)===!0?"sticky":"appended":"none",onColumnResize:v5,onColumnResizeEnd:Bt,onColumnResizeStart:n3,onCellFocused:AH,onColumnMoved:yH,onDragStart:BH,onHeaderMenuClick:RH,onItemHovered:FH,isFilling:(u==null?void 0:u.fillHandle)===!0,onMouseMove:NH,onKeyDown:g3,onKeyUp:X1,onMouseDown:MH,onMouseUp:EH,onDragOverCell:m4,onDrop:_5,onSearchResultsChanged:PH,onVisibleRegionChanged:zH,clientSize:[G[0],G[1]],rowHeight:M0,searchResults:U1,searchValue:O1,onSearchValueChange:P2,rows:Q2,scrollRef:H,selection:W,translateX:k2.tx,translateY:k2.ty,verticalBorder:DH,gridRef:j1,getCellRenderer:C1,scrollToEnd:M9}),IH,c!==void 0&&T.createElement(xy,j(S({},c),{validateCell:qe,id:Pt,getCellRenderer:C1,className:(v2==null?void 0:v2.isSubGrid)===!0?"click-outside-ignore":void 0,provideEditor:C0,imageEditorOverride:L,onFinishEditing:kH,markdownDivCreateNode:M,isOutsideClick:Zt}))))},jd=T.forwardRef(pF);var x0=y1(K1(),1);var Gd=i=>{var s=i,{color:e="currentColor",size:t=24,className:l}=s,r=v0(s,["color","size","className"]);return x0.default.createElement("svg",j(S({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e},r),{className:"remixicon "+(l||"")}),x0.default.createElement("path",{d:"M3 4H21V6H3V4ZM3 19H21V21H3V19ZM3 14H21V16H3V14ZM3 9H21V11H3V9Z"}))};var Kd=i=>{var s=i,{color:e="currentColor",size:t=24,className:l}=s,r=v0(s,["color","size","className"]);return x0.default.createElement("svg",j(S({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e},r),{className:"remixicon "+(l||"")}),x0.default.createElement("path",{d:"M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z"}))};var Xd=i=>{var s=i,{color:e="currentColor",size:t=24,className:l}=s,r=v0(s,["color","size","className"]);return x0.default.createElement("svg",j(S({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e},r),{className:"remixicon "+(l||"")}),x0.default.createElement("path",{d:"M10.8284 12.0007L15.7782 16.9504L14.364 18.3646L8 12.0007L14.364 5.63672L15.7782 7.05093L10.8284 12.0007Z"}))};var Yd=i=>{var s=i,{color:e="currentColor",size:t=24,className:l}=s,r=v0(s,["color","size","className"]);return x0.default.createElement("svg",j(S({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e},r),{className:"remixicon "+(l||"")}),x0.default.createElement("path",{d:"M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z"}))};var Qd=i=>{var s=i,{color:e="currentColor",size:t=24,className:l}=s,r=v0(s,["color","size","className"]);return x0.default.createElement("svg",j(S({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e},r),{className:"remixicon "+(l||"")}),x0.default.createElement("path",{d:"M13 12H16L12 16L8 12H11V8H13V12ZM15 4H5V20H19V8H15V4ZM3 2.9918C3 2.44405 3.44749 2 3.9985 2H16L20.9997 7L21 20.9925C21 21.5489 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918Z"}))};var Jd=i=>{var s=i,{color:e="currentColor",size:t=24,className:l}=s,r=v0(s,["color","size","className"]);return x0.default.createElement("svg",j(S({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e},r),{className:"remixicon "+(l||"")}),x0.default.createElement("path",{d:"M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z"}))};var eH=i=>{var s=i,{color:e="currentColor",size:t=24,className:l}=s,r=v0(s,["color","size","className"]);return x0.default.createElement("svg",j(S({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e},r),{className:"remixicon "+(l||"")}),x0.default.createElement("path",{d:"M11 2C15.968 2 20 6.032 20 11C20 15.968 15.968 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2ZM11 18C14.8675 18 18 14.8675 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18ZM19.4853 18.0711L22.3137 20.8995L20.8995 22.3137L18.0711 19.4853L19.4853 18.0711Z"}))};var tH=i=>{var s=i,{color:e="currentColor",size:t=24,className:l}=s,r=v0(s,["color","size","className"]);return x0.default.createElement("svg",j(S({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e},r),{className:"remixicon "+(l||"")}),x0.default.createElement("path",{d:"M19 3L23 8H20V20H18V8H15L19 3ZM14 18V20H3V18H14ZM14 11V13H3V11H14ZM12 4V6H3V4H12Z"}))},lH=i=>{var s=i,{color:e="currentColor",size:t=24,className:l}=s,r=v0(s,["color","size","className"]);return x0.default.createElement("svg",j(S({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e},r),{className:"remixicon "+(l||"")}),x0.default.createElement("path",{d:"M20 4V16H23L19 21L15 16H18V4H20ZM12 18V20H3V18H12ZM14 11V13H3V11H14ZM14 4V6H3V4H14Z"}))};var r2=y1(K1()),uH=y1(L6());function rH(e,t){for(var l=0;le.length)&&(t=e.length);for(var l=0,r=new Array(t);l=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sH(e){var t=(0,r2.useRef)(null);function l(r){!r||r===t.current||(t.current=r,e(r))}return l}function ZF(e){var t=(0,r2.useRef)(e);return(0,r2.useMemo)(function(){function l(i){typeof i=="function"?t.current=i(t.current):t.current=i}function r(){return t.current}return[r,l]},[])}function EF(){var e=(0,r2.useRef)([]);return(0,r2.useMemo)(function(){function t(){return e.current.length>0}function l(){for(var i=r3(e.current),s;!(s=i()).done;){var o=s.value;o()}e.current=[]}function r(i){e.current.push(i)}return{hasEventSubscriptions:t,removeAllEventSubscriptions:l,addEventSubscription:r}},[])}var us=typeof window!="undefined"?r2.useLayoutEffect:r2.useEffect;function NF(e,t){var l=(0,r2.useRef)(e);return t?(l.current=e,l):(l.current=null,l)}function Pe(e){return parseFloat(e.replace("px",""))}function Hs(e,t,l){return el?l:e}function oH(e){return e!=null}function aH(){for(var e=arguments.length,t=new Array(e),l=0;l{L.drawImage(v,0,0,h,h)}).finally(()=>{this.inFlight--,this.inFlight===0&&this.onSettled()})}else n<1&&(l.globalAlpha=n),l.drawImage(m,0,0,h,h,r,s,a,a),n<1&&(l.globalAlpha=1)}};var q8=F1(A9(),1),us=F1(h8(),1);function j7(e){if(e.length===0)return;let t;for(let i of e)t=Math.min(t!=null?t:i.y,i.y)}function U4(e,t,i,l,r,s,a,o,n){o=o!=null?o:t;let C=t,c=e,h=l-s,g=!1;for(;Co&&n(C,c,m,!1,a&&c===l-1)===!0){g=!0;break}C+=m,c++}if(!g){C=i;for(let m=0;m!w.sticky))==null?void 0:g.sourceIndex)!=null?m:0;if(n>h){let w=Math.max(o,h),L=t,v=l;for(let V=s.sourceIndex-1;V>=w;V--)L-=a[V].width,v+=a[V].width;for(let V=s.sourceIndex+1;V<=n;V++)v+=a[V].width;c={x:L,y:i,width:v,height:r}}if(h>o){let w=Math.min(n,h-1),L=t,v=l;for(let V=s.sourceIndex-1;V>=o;V--)L-=a[V].width,v+=a[V].width;for(let V=s.sourceIndex+1;V<=w;V++)v+=a[V].width;C={x:L,y:i,width:v,height:r}}return[C,c]}function Zi(e,t,i,l){if(l==="any")return w8(e,{x:t,y:i,width:1,height:1});if(l==="vertical"&&(t=e.x),l==="horizontal"&&(i=e.y),_7([t,i],e))return;let r=t-e.x,s=e.x+e.width-t,a=i-e.y+1,o=e.y+e.height-i,n=Math.min(l==="vertical"?Number.MAX_SAFE_INTEGER:r,l==="vertical"?Number.MAX_SAFE_INTEGER:s,l==="horizontal"?Number.MAX_SAFE_INTEGER:a,l==="horizontal"?Number.MAX_SAFE_INTEGER:o);return n===o?{x:e.x,y:e.y+e.height,width:e.width,height:i-e.y-e.height+1}:n===a?{x:e.x,y:i,width:e.width,height:e.y-i}:n===s?{x:e.x+e.width,y:e.y,width:t-e.x-e.width+1,height:e.height}:{x:t,y:e.y,width:e.x-t,height:e.height}}function H5(e,t,i,l,r,s,a,o){return e<=r+a&&r<=e+i&&t<=s+o&&s<=t+l}function G4(e,t,i){return t>=e.x&&t<=e.x+e.width&&i>=e.y&&i<=e.y+e.height}function w8(e,t){let i=Math.min(e.x,t.x),l=Math.min(e.y,t.y),r=Math.max(e.x+e.width,t.x+t.width)-i,s=Math.max(e.y+e.height,t.y+t.height)-l;return{x:i,y:l,width:r,height:s}}function Ei(e,t){return e.x<=t.x&&e.y<=t.y&&e.x+e.width>=t.x+t.width&&e.y+e.height>=t.y+t.height}function Ni(e,t,i,l){if(e.x>t||e.y>i||e.x<0&&e.y<0&&e.x+e.width>t&&e.y+e.height>i)return;if(e.x>=0&&e.y>=0&&e.x+e.width<=t&&e.y+e.height<=i)return e;let r=-4,s=-4,a=t+4,o=i+4,n=r-e.x,C=e.x+e.width-a,c=s-e.y,h=e.y+e.height-o,g=n>0?e.x+Math.floor(n/l)*l:e.x,m=C>0?e.x+e.width-Math.floor(C/l)*l:e.x+e.width,w=c>0?e.y+Math.floor(c/l)*l:e.y,L=h>0?e.y+e.height-Math.floor(h/l)*l:e.y+e.height;return{x:g,y:w,width:m-g,height:L-w}}function Ri(e,t,i,l,r){let[s,a,o,n]=t,[C,c,h,g]=r,{x:m,y:w,width:L,height:v}=e,V=[];if(L<=0||v<=0)return V;let u=m+L,d=w+v,p=mo,x=w+v>n,N=m>=s&&ms&&u<=o||mo,E=w>=a&&wa&&d<=n||wn;if(N&&E){let k=Math.max(m,s),b=Math.max(w,a),D=Math.min(u,o),B=Math.min(d,n);V.push({rect:{x:k,y:b,width:D-k,height:B-b},clip:{x:C,y:c,width:h-C+1,height:g-c+1}})}if(p&&Z){let k=m,b=w,D=Math.min(u,s),B=Math.min(d,a);V.push({rect:{x:k,y:b,width:D-k,height:B-b},clip:{x:0,y:0,width:C+1,height:c+1}})}if(Z&&N){let k=Math.max(m,s),b=w,D=Math.min(u,o),B=Math.min(d,a);V.push({rect:{x:k,y:b,width:D-k,height:B-b},clip:{x:C,y:0,width:h-C+1,height:c+1}})}if(Z&&R){let k=Math.max(m,o),b=w,D=u,B=Math.min(d,a);V.push({rect:{x:k,y:b,width:D-k,height:B-b},clip:{x:h,y:0,width:i-h+1,height:c+1}})}if(p&&E){let k=m,b=Math.max(w,a),D=Math.min(u,s),B=Math.min(d,n);V.push({rect:{x:k,y:b,width:D-k,height:B-b},clip:{x:0,y:c,width:C+1,height:g-c+1}})}if(R&&E){let k=Math.max(m,o),b=Math.max(w,a),D=u,B=Math.min(d,n);V.push({rect:{x:k,y:b,width:D-k,height:B-b},clip:{x:h,y:c,width:i-h+1,height:g-c+1}})}if(p&&x){let k=m,b=Math.max(w,n),D=Math.min(u,s),B=d;V.push({rect:{x:k,y:b,width:D-k,height:B-b},clip:{x:0,y:g,width:C+1,height:l-g+1}})}if(x&&N){let k=Math.max(m,s),b=Math.max(w,n),D=Math.min(u,o),B=d;V.push({rect:{x:k,y:b,width:D-k,height:B-b},clip:{x:C,y:g,width:h-C+1,height:l-g+1}})}if(R&&x){let k=Math.max(m,o),b=Math.max(w,n),D=u,B=d;V.push({rect:{x:k,y:b,width:D-k,height:B-b},clip:{x:h,y:g,width:i-h+1,height:l-g+1}})}return V}var Hm={kind:c1.Loading,allowOverlay:!1};function L8(e,t,i,l,r,s,a,o,n,C,c,h,g,m,w,L,v,V,u,d,p,Z,R,x,N,E,S,k,b,D,B,_,K,Q,m1){var e2;let g1=(e2=d==null?void 0:d.size)!=null?e2:Number.MAX_SAFE_INTEGER,w1=performance.now(),G=D.baseFontFull;e.font=G;let s1={ctx:e},o1=[0,0],R1=v>0?a4(n,v,C):0,J,I1,p1=j7(u);return _0(t,o,s,a,r,(H1,W1,E2,Z2,u2)=>{var H2;let y1=Math.max(0,Z2-W1),t2=W1+y1,w2=r+1,i2=H1.width-y1,a1=l-r-1;if(u.length>0){let t1=!1;for(let V1=0;V1{e.save(),e.beginPath(),e.rect(t2,w2,i2,a1),e.clip()},l2=p.columns.hasIndex(H1.sourceIndex),q1=h((H2=H1.group)!=null?H2:"").overrideTheme,S1=H1.themeOverride===void 0&&q1===void 0?D:r4(D,q1,H1.themeOverride),$1=S1.baseFontFull;$1!==G&&(G=$1,e.font=$1),T1();let U1;return U4(u2,E2,l,n,C,v,V,p1,(t1,V1,f1,b1,z2)=>{var Z0,o4,T0,m0;if(V1<0||(o1[0]=H1.sourceIndex,o1[1]=V1,d!==void 0&&!d.has(o1)))return;if(u.length>0){let B1=!1;for(let S2=0;S2l1.span!==void 0&&B1>=l1.span[0]&&B1<=l1.span[1]);Y2&&!w&&L?J2=0:Y2&&L&&(J2=Math.max(J2,1)),k0&&J2++,Y2||(n1&&J2++,l2&&!z2&&J2++);let C2=l1.kind===c1.Protected?c0.bgCellMedium:c0.bgCell,m2;if((b1||C2!==D.bgCell)&&(m2=y0(C2,m2)),J2>0||L1){L1&&(m2=y0(c0.bgHeader,m2));for(let B1=0;B1m1&&!Q2){let B1=c0.baseFontFull;B1!==G&&(e.font=B1,G=B1),U1=V8(e,l1,H1.sourceIndex,V1,A2,y2,M1,t1,Z1,f1,J2>0,c0,m2!=null?m2:c0.bgCell,x,N,(T0=F2==null?void 0:F2.hoverAmount)!=null?T0:0,S,b,w1,k,U1,B,_,K,Q)}return L2&&e.restore(),l1.style==="faded"&&(e.globalAlpha=1),g1--,R2&&(e.restore(),(m0=U1==null?void 0:U1.deprep)==null||m0.call(U1,s1),U1=void 0,T1(),G=$1,e.font=$1),g1<=0}),e.restore(),g1<=0}),J}var I9=[0,0],O9={x:0,y:0,width:0,height:0},g8=[void 0,()=>{}],H8=!1;function Lm(){H8=!0}function V8(e,t,i,l,r,s,a,o,n,C,c,h,g,m,w,L,v,V,u,d,p,Z,R,x,N){var _,K;let E,S;v!==void 0&&v[0][0]===i&&v[0][1]===l&&(E=v[1][0],S=v[1][1]);let k;I9[0]=i,I9[1]=l,O9.x=a,O9.y=o,O9.width=n,O9.height=C,g8[0]=R.getValue(I9),g8[1]=Q=>R.setValue(I9,Q),H8=!1;let b={ctx:e,theme:h,col:i,row:l,cell:t,rect:O9,highlighted:c,cellFillColor:g,hoverAmount:L,frameTime:u,hoverX:E,drawState:g8,hoverY:S,imageLoader:m,spriteManager:w,hyperWrapping:V,overrideCursor:E!==void 0?N:void 0,requestAnimationFrame:Lm},D=vt(b,t.lastUpdated,u,p,r,s),B=x(t);if(B!==void 0){(p==null?void 0:p.renderer)!==B&&((_=p==null?void 0:p.deprep)==null||_.call(p,b),p=void 0);let Q=(K=B.drawPrep)==null?void 0:K.call(B,b,p);d!==void 0&&!F4(b.cell)?d(b,()=>B.draw(b,t)):B.draw(b,t),k=Q===void 0?void 0:{deprep:Q==null?void 0:Q.deprep,fillStyle:Q==null?void 0:Q.fillStyle,font:Q==null?void 0:Q.font,renderer:B}}return(D||H8)&&(Z==null||Z(I9)),k}function j5(e,t,i,l,r,s,a,o,n=-20,C=-20,c=32,h="center",g="square"){var p;let m=Math.floor(r+a/2),w=g==="circle"?1e4:(p=t.roundingRadius)!=null?p:4,L=F7(c,a,t.cellVerticalPadding),v=L/2,V=b7(h,l,s,t.cellHorizontalPadding,L),u=y7(V,m,L),d=S7(l+n,r+C,u);switch(i){case!0:{e.beginPath(),f0(e,V-L/2,m-L/2,L,L,w),g==="circle"&&(v*=.8,L*=.8),e.fillStyle=o?t.accentColor:t.textMedium,e.fill(),e.beginPath(),e.moveTo(V-v+L/4.23,m-v+L/1.97),e.lineTo(V-v+L/2.42,m-v+L/1.44),e.lineTo(V-v+L/1.29,m-v+L/3.25),e.strokeStyle=t.bgCell,e.lineJoin="round",e.lineCap="round",e.lineWidth=1.9,e.stroke();break}case O5:case!1:{e.beginPath(),f0(e,V-L/2+.5,m-L/2+.5,L-1,L-1,w),e.lineWidth=1,e.strokeStyle=d?t.textDark:t.textMedium,e.stroke();break}case _5:{e.beginPath(),f0(e,V-L/2,m-L/2,L,L,w),e.fillStyle=d?t.textMedium:t.textLight,e.fill(),g==="circle"&&(v*=.8,L*=.8),e.beginPath(),e.moveTo(V-L/3,m),e.lineTo(V+L/3,m),e.strokeStyle=t.bgCell,e.lineCap="round",e.lineWidth=1.9,e.stroke();break}default:l5(i)}}function zi(e,t,i,l,r,s,a,o,n,C,c,h,g,m,w,L,v,V,u){var x;let d=a+o;if(d<=0)return;e.fillStyle=h.bgHeader,e.fillRect(0,0,r,d);let[p,Z]=(x=l==null?void 0:l[0])!=null?x:[],R=h.headerFontFull;e.font=R,_0(t,0,s,0,d,(N,E,S,k)=>{var o1,R1,J;if(v!==void 0&&!v.has([N.sourceIndex,-1]))return;let b=Math.max(0,k-E);e.save(),e.beginPath(),e.rect(E+b,o,N.width-b,a),e.clip();let D=L((o1=N.group)!=null?o1:"").overrideTheme,B=N.themeOverride===void 0&&D===void 0?h:r4(h,D,N.themeOverride);B.bgHeader!==h.bgHeader&&(e.fillStyle=B.bgHeader,e.fill()),B!==h&&(e.font=B.baseFontFull);let _=c.columns.hasIndex(N.sourceIndex),K=n!==void 0||C,Q=!K&&Z===-1&&p===N.sourceIndex,m1=K?0:(J=(R1=m.find(I1=>I1.item[0]===N.sourceIndex&&I1.item[1]===-1))==null?void 0:R1.hoverAmount)!=null?J:0,g1=(c==null?void 0:c.current)!==void 0&&c.current.cell[0]===N.sourceIndex,w1=_?B.accentColor:g1?B.bgHeaderHasFocus:B.bgHeader,G=i?o:0,s1=N.sourceIndex===0?0:1;_?(e.fillStyle=w1,e.fillRect(E+s1,G,N.width-s1,a)):(g1||m1>0)&&(e.beginPath(),e.rect(E+s1,G,N.width-s1,a),g1&&(e.fillStyle=B.bgHeaderHasFocus,e.fill()),m1>0&&(e.globalAlpha=m1,e.fillStyle=B.bgHeaderHovered,e.fill(),e.globalAlpha=1)),v8(e,E,G,N.width,a,N,_,B,Q,g1,m1,g,V,u),e.restore()}),i&&Vm(e,t,r,s,o,l,h,g,m,w,L,v)}function Vm(e,t,i,l,r,s,a,o,n,C,c,h){var v;let[m,w]=(v=s==null?void 0:s[0])!=null?v:[],L=0;Y7(t,i,l,r,(V,u,d,p,Z,R)=>{var k,b;if(h!==void 0&&!h.hasItemInRectangle({x:V[0],y:-2,width:V[1]-V[0]+1,height:1}))return;e.save(),e.beginPath(),e.rect(d,p,Z,R),e.clip();let x=c(u),N=(x==null?void 0:x.overrideTheme)===void 0?a:r4(a,x.overrideTheme),E=w===-2&&m!==void 0&&m>=V[0]&&m<=V[1],S=E?N.bgHeaderHovered:N.bgHeader;if(S!==a.bgHeader&&(e.fillStyle=S,e.fill()),e.fillStyle=(k=N.textGroupHeader)!=null?k:N.textHeader,x!==void 0){let D=d;if(x.icon!==void 0&&(o.drawSprite(x.icon,"normal",e,D+8,(r-20)/2,20,N),D+=26),e.fillText(x.name,D+8,r/2+x0(e,a.headerFontFull)),x.actions!==void 0&&E){let B=u8({x:d,y:p,width:Z,height:R},x.actions);e.beginPath();let _=B[0].x-10,K=d+Z-_;e.rect(_,0,K,r);let Q=e.createLinearGradient(_,0,_+K,0),m1=z0(S,0);Q.addColorStop(0,m1),Q.addColorStop(10/K,S),Q.addColorStop(1,S),e.fillStyle=Q,e.fill(),e.globalAlpha=.6;let[g1,w1]=(b=s==null?void 0:s[1])!=null?b:[-1,-1];for(let G=0;G35){let p=g?35:l-35,Z=g?35*.7:l-35*.7,R=p/l,x=Z/l,N=e.createLinearGradient(t,0,t+l,0),E=z0(L,0);N.addColorStop(g?1:0,L),N.addColorStop(R,L),N.addColorStop(x,E),N.addColorStop(g?0:1,E),e.fillStyle=N}else e.fillStyle=L;if(g&&(e.textAlign="right"),e.fillText(s.title,u,i+r/2+x0(e,o.headerFontFull)),g&&(e.textAlign="left"),v&&s.hasMenu===!0)if(s.menuIcon===void 0||s.menuIcon===k3.Triangle){e.beginPath();let d=m.x+m.width/2-5.5,p=m.y+m.height/2-3;t8(e,[{x:d,y:p},{x:d+11,y:p},{x:d+5.5,y:p+6}],1),e.fillStyle=L,e.fill()}else if(s.menuIcon===k3.Dots){e.beginPath();let d=m.x+m.width/2,p=m.y+m.height/2;Mt(e,d,p),e.fillStyle=L,e.fill()}else{let d=m.x+(m.width-o.headerIconSize)/2,p=m.y+(m.height-o.headerIconSize)/2;c.drawSprite(s.menuIcon,"normal",e,d,p,o.headerIconSize,o)}}function v8(e,t,i,l,r,s,a,o,n,C,c,h,g,m){let w=$5(s.title)==="rtl",L=d8(t,i,l,r,w);g!==void 0?g({ctx:e,theme:o,rect:{x:t,y:i,width:l,height:r},column:s,columnIndex:s.sourceIndex,isSelected:a,hoverAmount:c,isHovered:n,hasSelectedCell:C,spriteManager:h,menuBounds:L},()=>Bi(e,t,i,l,r,s,a,o,n,c,h,m,w,L)):Bi(e,t,i,l,r,s,a,o,n,c,h,m,w,L)}var ns=F1(os(),1);function Cs(e,t,i,l,r,s,a,o,n,C,c,h,g,m,w,L,v,V,u){if(V!==void 0||t[t.length-1]!==i[t.length-1])return;let d=j7(v);_0(t,n,a,o,s,(p,Z,R,x,N)=>{if(p!==t[t.length-1])return;Z+=p.width;let E=Math.max(Z,x);E>l||(e.save(),e.beginPath(),e.rect(E,s+1,1e4,r-s-1),e.clip(),U4(N,R,r,C,c,w,L,d,(S,k,b,D)=>{if(!D&&v.length>0&&!v.some(m1=>H5(Z,S,1e4,b,m1.x,m1.y,m1.width,m1.height)))return;let B=g.hasIndex(k),_=m.hasIndex(k);e.beginPath();let K=h==null?void 0:h(k),Q=K===void 0?u:r4(u,K);Q.bgCell!==u.bgCell&&(e.fillStyle=Q.bgCell,e.fillRect(Z,S,1e4,b)),_&&(e.fillStyle=Q.bgHeader,e.fillRect(Z,S,1e4,b)),B&&(e.fillStyle=Q.accentLight,e.fillRect(Z,S,1e4,b))}),e.restore())})}function cs(e,t,i,l,r,s,a,o,n){var w;let C=!1;for(let L of t)if(!L.sticky){C=a(L.sourceIndex);break}let c=(w=n.horizontalBorderColor)!=null?w:n.borderColor,h=n.borderColor,g=C?Z4(t):0,m;if(g!==0&&(m=P3(h,n.bgCell),e.beginPath(),e.moveTo(g+.5,0),e.lineTo(g+.5,l),e.strokeStyle=m,e.stroke()),r>0){let L=h===c&&m!==void 0?m:P3(c,n.bgCell),v=a4(s,r,o);e.beginPath(),e.moveTo(0,l-v+.5),e.lineTo(i,l-v+.5),e.strokeStyle=L,e.stroke()}}var ms=(e,t,i)=>{let l=0,r=t,s=0,a=i;if(e!==void 0&&e.length>0){l=Number.MAX_SAFE_INTEGER,s=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER,a=Number.MIN_SAFE_INTEGER;for(let o of e)l=Math.min(l,o.x-1),r=Math.max(r,o.x+o.width+1),s=Math.min(s,o.y-1),a=Math.max(a,o.y+o.height+1)}return{minX:l,maxX:r,minY:s,maxY:a}};function hs(e,t,i,l,r,s,a,o,n,C,c,h,g,m,w){var b;let L=w.bgCell,{minX:v,maxX:V,minY:u,maxY:d}=ms(o,s,a),p=[],Z=a-a4(m,g,C),R=n,x=i,N=0;for(;R+r=u&&D<=d-1){let _=c==null?void 0:c(x),K=_==null?void 0:_.bgCell;K!==void 0&&K!==L&&x>=m-g&&p.push({x:v,y:D,w:V-v,h:B,color:K})}R+=B,x0)for(let D=0;D=v&&_<=V&&h(D+1)&&p.push({x:_,y:N,w:B.width,h:S,color:K}),E+=B.width}if(p.length===0)return;let k;e.beginPath();for(let D=p.length-1;D>=0;D--){let B=p[D];k===void 0?k=B.color:B.color!==k&&(e.fillStyle=k,e.fill(),e.beginPath(),k=B.color),e.rect(B.x,B.y,B.w,B.h)}k!==void 0&&(e.fillStyle=k,e.fill()),e.beginPath()}function P8(e,t,i,l,r,s,a,o,n,C,c,h,g,m,w,L,v,V=!1){var b,D,B;if(n!==void 0){e.beginPath(),e.save(),e.rect(0,0,s,a);for(let _ of n)e.rect(_.x+1,_.y+1,_.width-1,_.height-1);e.clip("evenodd")}let u=(b=v.horizontalBorderColor)!=null?b:v.borderColor,d=v.borderColor,{minX:p,maxX:Z,minY:R,maxY:x}=ms(o,s,a),N=[];e.beginPath();let E=.5;for(let _=0;_=p&&Q<=Z&&m(_+1)&&N.push({x1:Q,y1:Math.max(C,R),x2:Q,y2:Math.min(a,x),color:d})}let S=a+.5;for(let _=L-w;_=R&&m1<=x-1){let g1=g==null?void 0:g(K);N.push({x1:p,y1:m1,x2:Z,y2:m1,color:(B=(D=g1==null?void 0:g1.horizontalBorderColor)!=null?D:g1==null?void 0:g1.borderColor)!=null?B:u})}_+=h(K),K++}}let k=(0,ns.default)(N,_=>_.color);for(let _ of Object.keys(k)){e.strokeStyle=_;for(let K of k[_])e.moveTo(K.x1,K.y1),e.lineTo(K.x2,K.y2);e.stroke(),e.beginPath()}n!==void 0&&e.restore()}function ws(e,t,i,l,r,s,a,o,n,C,c,h,g,m,w,L,v,V,u){let d=[];e.imageSmoothingEnabled=!1;let p=Math.min(r.cellYOffset,a),Z=Math.max(r.cellYOffset,a),R=0;if(typeof V=="number")R+=(Z-p)*V;else for(let B=p;Br.cellYOffset&&(R=-R),R+=n-r.translateY;let x=Math.min(r.cellXOffset,s),N=Math.max(r.cellXOffset,s),E=0;for(let B=x;Br.cellXOffset&&(E=-E),E+=o-r.translateX;let S=Z4(v);if(E!==0&&R!==0)return{regions:[]};let k=C>0?a4(g,C,V):0,b=c-S-Math.abs(E),D=h-m-k-Math.abs(R)-1;if(b>150&&D>150){let B={sx:0,sy:0,sw:c*w,sh:h*w,dx:0,dy:0,dw:c*w,dh:h*w};if(R>0?(B.sy=(m+1)*w,B.sh=D*w,B.dy=(R+m+1)*w,B.dh=D*w,d.push({x:0,y:m,width:c,height:R+1})):R<0&&(B.sy=(-R+m+1)*w,B.sh=D*w,B.dy=(m+1)*w,B.dh=D*w,d.push({x:0,y:h+R-k,width:c,height:-R+k})),E>0?(B.sx=S*w,B.sw=b*w,B.dx=(E+S)*w,B.dw=b*w,d.push({x:S-1,y:0,width:E+2,height:h})):E<0&&(B.sx=(S-E)*w,B.sw=b*w,B.dx=S*w,B.dw=b*w,d.push({x:c+E,y:0,width:-E,height:h})),e.setTransform(1,0,0,1,0,0),u){if(S>0&&E!==0&&R===0&&(l===void 0||(i==null?void 0:i[1])!==!1)){let _=S*w,K=h*w;e.drawImage(t,0,0,_,K,0,0,_,K)}if(k>0&&E===0&&R!==0&&(l===void 0||(i==null?void 0:i[0])!==!1)){let _=(h-k)*w,K=c*w,Q=k*w;e.drawImage(t,0,_,K,Q,0,_,K,Q)}}e.drawImage(t,B.sx,B.sy,B.sw,B.sh,B.dx,B.dy,B.dw,B.dh),e.scale(w,w)}return e.imageSmoothingEnabled=!0,{regions:d}}function gs(e,t,i,l,r,s,a,o,n,C){let c=[];return t!==e.cellXOffset||i!==e.cellYOffset||l!==e.translateX||r!==e.translateY||_0(n,i,l,r,o,(h,g,m,w)=>{if(h.sourceIndex===C){let L=Math.max(g,w)+1;return c.push({x:L,y:0,width:s-L,height:a}),!0}}),c}function Hs(e,t){if(t===void 0||e.width!==t.width||e.height!==t.height||e.theme!==t.theme||e.headerHeight!==t.headerHeight||e.rowHeight!==t.rowHeight||e.rows!==t.rows||e.freezeColumns!==t.freezeColumns||e.getRowThemeOverride!==t.getRowThemeOverride||e.isFocused!==t.isFocused||e.isResizing!==t.isResizing||e.verticalBorder!==t.verticalBorder||e.getCellContent!==t.getCellContent||e.highlightRegions!==t.highlightRegions||e.selection!==t.selection||e.dragAndDropState!==t.dragAndDropState||e.prelightCells!==t.prelightCells||e.touchMode!==t.touchMode||e.maxScaleFactor!==t.maxScaleFactor)return!1;if(e.mappedColumns!==t.mappedColumns){if(e.mappedColumns.length>100||e.mappedColumns.length!==t.mappedColumns.length)return!1;let r;for(let s=0;sx.style!=="no-outline");if(v===void 0||v.length===0)return;let V=Z4(o),u=a4(m,g,h),d=[n,0,o.length,m-g],p=[V,0,t,i-u],Z=v.map(x=>{var S;let N=x.range,E=(S=x.style)!=null?S:"dashed";return Ri(N,d,t,i,p).map(k=>{let b=k.rect,D=P9(b.x,b.y,t,i,c,C+c,l,r,s,a,m,n,g,o,h),B=b.width===1&&b.height===1?D:P9(b.x+b.width-1,b.y+b.height-1,t,i,c,C+c,l,r,s,a,m,n,g,o,h);return b.x+b.width>=o.length&&(B.width-=1),b.y+b.height>=m&&(B.height-=1),{color:x.color,style:E,clip:k.clip,rect:Ni({x:D.x,y:D.y,width:B.x+B.width-D.x,height:B.y+B.height-D.y},t,i,8)}})}),R=()=>{e.lineWidth=1;let x=!1;for(let N of Z)for(let E of N)if((E==null?void 0:E.rect)!==void 0&&H5(0,0,t,i,E.rect.x,E.rect.y,E.rect.width,E.rect.height)){let S=x,k=!Ei(E.clip,E.rect);k&&(e.save(),e.rect(E.clip.x,E.clip.y,E.clip.width,E.clip.height),e.clip()),E.style==="dashed"&&!x?(e.setLineDash([5,3]),x=!0):(E.style==="solid"||E.style==="solid-outline")&&x&&(e.setLineDash([]),x=!1),e.strokeStyle=E.style==="solid-outline"?y0(y0(E.color,L.borderColor),L.bgCell):z0(E.color,1),e.strokeRect(E.rect.x+.5,E.rect.y+.5,E.rect.width-1,E.rect.height-1),k&&(e.restore(),x=S)}x&&e.setLineDash([])};return R(),R}function A8(e,t,i,l,r){e.beginPath(),e.moveTo(t,i),e.lineTo(t,l),e.lineWidth=2,e.strokeStyle=r,e.stroke(),e.globalAlpha=1}function t3(e,t,i,l,r,s,a,o,n,C,c,h,g,m,w,L,v){var B;if(c.current===void 0)return;let V=c.current.range,u=c.current.cell,d=[V.x+V.width-1,V.y+V.height-1];if(u[1]>=v&&d[1]>=v||!a.some(_=>_.sourceIndex===u[0]||_.sourceIndex===d[0]))return;let[Z,R]=c.current.cell,x=g(c.current.cell),N=(B=x.span)!=null?B:[Z,Z],E=R>=v-m,S=m>0&&!E?a4(v,m,h)-1:0,k=d[1],b;if(_0(a,l,r,s,C,(_,K,Q,m1,g1)=>{if(_.sticky&&Z>_.sourceIndex)return;let w1=_.sourceIndexN[1],s1=_.sourceIndex===d[0];if(!(!s1&&(w1||G)))return U4(g1,Q,i,v,h,m,w,void 0,(o1,R1,J)=>{if(R1!==R&&R1!==k)return;let I1=K,p1=_.width;if(x.span!==void 0){let H1=Q7(x.span,K,o1,_.width,J,_,o),W1=_.sticky?H1[0]:H1[1];W1!==void 0&&(I1=W1.x,p1=W1.width)}return R1===k&&s1&&L&&(b=()=>{var H1,W1;m1>I1&&!_.sticky&&(e.beginPath(),e.rect(m1,0,t-m1,i),e.clip()),e.beginPath(),e.rect(I1+p1-4,o1+J-4,4,4),e.fillStyle=(W1=(H1=_.themeOverride)==null?void 0:H1.accentColor)!=null?W1:n.accentColor,e.fill()}),b!==void 0}),b!==void 0}),b===void 0)return;let D=()=>{e.save(),e.beginPath(),e.rect(0,C,t,i-C-S),e.clip(),b==null||b(),e.restore()};return D(),D}function RH(e,t,i,l,r,s,a,o,n){n===void 0||n.size===0||(e.beginPath(),Y7(t,i,s,l,(C,c,h,g,m,w)=>{n.hasItemInRectangle({x:C[0],y:-2,width:C[1]-C[0]+1,height:1})&&e.rect(h,g,m,w)}),_0(t,o,s,a,r,(C,c,h,g)=>{let m=Math.max(0,g-c),w=c+m+1,L=C.width-m-1;n.has([C.sourceIndex,-1])&&e.rect(w,l,L,r-l)}),e.clip())}function BH(e,t,i,l,r,s,a,o,n,C){let c=0;return _0(e,s,l,r,i,(h,g,m,w,L)=>(U4(L,m,t,a,o,n,C,void 0,(v,V,u,d)=>{d||(c=Math.max(V,c))}),!0)),c}function I8(e,t){var C2,m2;let{canvasCtx:i,headerCanvasCtx:l,width:r,height:s,cellXOffset:a,cellYOffset:o,translateX:n,translateY:C,mappedColumns:c,enableGroups:h,freezeColumns:g,dragAndDropState:m,theme:w,drawFocus:L,headerHeight:v,groupHeaderHeight:V,disabledRows:u,rowHeight:d,verticalBorder:p,overrideCursor:Z,isResizing:R,selection:x,fillHandle:N,freezeTrailingRows:E,rows:S,getCellContent:k,getGroupDetails:b,getRowThemeOverride:D,isFocused:B,drawHeaderCallback:_,prelightCells:K,drawCellCallback:Q,highlightRegions:m1,resizeCol:g1,imageLoader:w1,lastBlitData:G,hoverValues:s1,hyperWrapping:o1,hoverInfo:R1,spriteManager:J,maxScaleFactor:I1,hasAppendRow:p1,touchMode:e2,enqueue:H1,renderStateProvider:W1,getCellRenderer:E2,renderStrategy:Z2,bufferACtx:u2,bufferBCtx:y1,damage:t2,minimumCellWidth:w2}=e;if(r===0||s===0)return;let i2=Z2==="double-buffer",a1=Math.min(I1,Math.ceil((C2=window.devicePixelRatio)!=null?C2:1)),T1=Z2!=="direct"&&Hs(e,t),l2=i.canvas;(l2.width!==r*a1||l2.height!==s*a1)&&(l2.width=r*a1,l2.height=s*a1,l2.style.width=r+"px",l2.style.height=s+"px");let q1=l.canvas,S1=h?V+v:v,$1=S1+1;(q1.width!==r*a1||q1.height!==$1*a1)&&(q1.width=r*a1,q1.height=$1*a1,q1.style.width=r+"px",q1.style.height=$1+"px");let U1=u2.canvas,H2=y1.canvas;i2&&(U1.width!==r*a1||U1.height!==s*a1)&&(U1.width=r*a1,U1.height=s*a1,G.current!==void 0&&(G.current.aBufferScroll=void 0)),i2&&(H2.width!==r*a1||H2.height!==s*a1)&&(H2.width=r*a1,H2.height=s*a1,G.current!==void 0&&(G.current.bBufferScroll=void 0));let t1=G.current;if(T1===!0&&a===(t1==null?void 0:t1.cellXOffset)&&o===(t1==null?void 0:t1.cellYOffset)&&n===(t1==null?void 0:t1.translateX)&&C===(t1==null?void 0:t1.translateY))return;let V1=null;i2&&(V1=i);let f1=l,b1;i2?t2!==void 0?b1=(t1==null?void 0:t1.lastBuffer)==="b"?y1:u2:b1=(t1==null?void 0:t1.lastBuffer)==="b"?u2:y1:b1=i;let z2=b1.canvas,n1=i2?z2===U1?H2:U1:l2,L1=typeof d=="number"?()=>d:d;f1.save(),b1.save(),f1.beginPath(),b1.beginPath(),f1.textBaseline="middle",b1.textBaseline="middle",a1!==1&&(f1.scale(a1,a1),b1.scale(a1,a1));let l1=T9(c,a,r,m,n),M1=[],Z1=L&&((m2=x.current)==null?void 0:m2.cell[1])===o&&C===0,R2=!1;if(m1!==void 0){for(let L2 of m1)if(L2.style!=="no-outline"&&L2.range.y===o&&C===0){R2=!0;break}}let Q2=()=>{var L2,A2;zi(f1,l1,h,R1,r,n,v,V,m,R,x,w,J,s1,p,b,t2,_,e2),P8(f1,l1,o,n,C,r,s,void 0,void 0,V,S1,L1,D,p,E,S,w,!0),f1.beginPath(),f1.moveTo(0,$1-.5),f1.lineTo(r,$1-.5),f1.strokeStyle=y0((A2=(L2=w.headerBottomBorderColor)!=null?L2:w.horizontalBorderColor)!=null?A2:w.borderColor,w.bgHeader),f1.stroke(),R2&&D8(f1,r,s,a,o,n,C,c,g,v,V,d,E,S,m1,w),Z1&&t3(f1,r,s,o,n,C,l1,c,w,S1,x,L1,k,E,p1,N,S)};if(t2!==void 0){let L2=l1[l1.length-1].sourceIndex+1,A2=t2.hasItemInRegion([{x:a,y:-2,width:L2,height:2},{x:a,y:o,width:L2,height:300},{x:0,y:o,width:g,height:300},{x:0,y:-2,width:g,height:2},{x:a,y:S-E,width:L2,height:E,when:E>0}]),y2=F2=>{L8(F2,l1,c,s,S1,n,C,o,S,L1,k,b,D,u,B,L,E,p1,M1,t2,x,K,m1,w1,J,s1,R1,Q,o1,w,H1,W1,E2,Z,w2);let Z0=x.current;N&&L&&Z0!==void 0&&t2.has(W7(Z0.range))&&t3(F2,r,s,o,n,C,l1,c,w,S1,x,L1,k,E,p1,N,S)};A2&&(y2(b1),V1!==null&&(V1.save(),V1.scale(a1,a1),V1.textBaseline="middle",y2(V1),V1.restore()),t2.hasHeader()&&(RH(f1,l1,r,V,S1,n,C,o,t2),Q2())),b1.restore(),f1.restore();return}if((T1!==!0||a!==(t1==null?void 0:t1.cellXOffset)||n!==(t1==null?void 0:t1.translateX)||Z1!==(t1==null?void 0:t1.mustDrawFocusOnHeader)||R2!==(t1==null?void 0:t1.mustDrawHighlightRingsOnHeader))&&Q2(),T1===!0){d0(n1!==void 0&&t1!==void 0);let{regions:L2}=ws(b1,n1,n1===U1?t1.aBufferScroll:t1.bBufferScroll,n1===U1?t1.bBufferScroll:t1.aBufferScroll,t1,a,o,n,C,E,r,s,S,S1,a1,c,l1,d,i2);M1=L2}else T1!==!1&&(d0(t1!==void 0),M1=gs(t1,a,o,n,C,r,s,S1,l1,T1));cs(b1,l1,r,s,E,S,p,L1,w);let e0=D8(b1,r,s,a,o,n,C,c,g,v,V,d,E,S,m1,w),t0=L?t3(b1,r,s,o,n,C,l1,c,w,S1,x,L1,k,E,p1,N,S):void 0;if(b1.fillStyle=w.bgCell,M1.length>0){b1.beginPath();for(let L2 of M1)b1.rect(L2.x,L2.y,L2.width,L2.height);b1.clip(),b1.fill(),b1.beginPath()}else b1.fillRect(0,0,r,s);let c0=L8(b1,l1,c,s,S1,n,C,o,S,L1,k,b,D,u,B,L,E,p1,M1,t2,x,K,m1,w1,J,s1,R1,Q,o1,w,H1,W1,E2,Z,w2);Cs(b1,l1,c,r,s,S1,n,C,o,S,L1,D,x.rows,u,E,p1,M1,t2,w),hs(b1,l1,o,n,C,r,s,M1,S1,L1,D,p,E,S,w),P8(b1,l1,o,n,C,r,s,M1,c0,V,S1,L1,D,p,E,S,w),e0==null||e0(),t0==null||t0(),R&&_0(l1,0,n,0,S1,(L2,A2)=>{var y2,F2;return L2.sourceIndex===g1?(A8(f1,A2+L2.width,0,S1+1,y0((y2=w.resizeIndicatorColor)!=null?y2:w.accentLight,w.bgHeader)),A8(b1,A2+L2.width,S1,s,y0((F2=w.resizeIndicatorColor)!=null?F2:w.accentLight,w.bgCell)),!0):!1}),V1!==null&&(V1.fillStyle=w.bgCell,V1.fillRect(0,0,r,s),V1.drawImage(b1.canvas,0,0));let Y2=BH(l1,s,S1,n,C,o,S,L1,E,p1);w1==null||w1.setWindow({x:a,y:o,width:l1.length,height:Y2-o},g,Array.from({length:E},(L2,A2)=>S-1-A2));let J2=t1!==void 0&&(a!==t1.cellXOffset||n!==t1.translateX),k0=t1!==void 0&&(o!==t1.cellYOffset||C!==t1.translateY);G.current={cellXOffset:a,cellYOffset:o,translateX:n,translateY:C,mustDrawFocusOnHeader:Z1,mustDrawHighlightRingsOnHeader:R2,lastBuffer:i2?z2===U1?"a":"b":void 0,aBufferScroll:z2===U1?[J2,k0]:t1==null?void 0:t1.aBufferScroll,bBufferScroll:z2===H2?[J2,k0]:t1==null?void 0:t1.bBufferScroll},b1.restore(),f1.restore()}var O8=F1(A9(),1);var zH=80;function yH(e){let t=e-1;return t*t*t+1}var i3=class{constructor(t){c2(this,"callback");c2(this,"currentHoveredItem");c2(this,"leavingItems",[]);c2(this,"lastAnimationTime");c2(this,"addToLeavingItems",t=>{this.leavingItems.some(l=>g5(l.item,t.item))||this.leavingItems.push(t)});c2(this,"removeFromLeavingItems",t=>{var l;let i=this.leavingItems.find(r=>g5(r.item,t));return this.leavingItems=this.leavingItems.filter(r=>r!==i),(l=i==null?void 0:i.hoverAmount)!=null?l:0});c2(this,"cleanUpLeavingElements",()=>{this.leavingItems=this.leavingItems.filter(t=>t.hoverAmount>0)});c2(this,"shouldStep",()=>{let t=this.leavingItems.length>0,i=this.currentHoveredItem!==void 0&&this.currentHoveredItem.hoverAmount<1;return t||i});c2(this,"getAnimatingItems",()=>this.currentHoveredItem!==void 0?[...this.leavingItems,this.currentHoveredItem]:this.leavingItems.map(t=>P(y({},t),{hoverAmount:yH(t.hoverAmount)})));c2(this,"step",t=>{if(this.lastAnimationTime===void 0)this.lastAnimationTime=t;else{let l=(t-this.lastAnimationTime)/zH;for(let s of this.leavingItems)s.hoverAmount=(0,O8.default)(s.hoverAmount-l,0,1);this.currentHoveredItem!==void 0&&(this.currentHoveredItem.hoverAmount=(0,O8.default)(this.currentHoveredItem.hoverAmount+l,0,1));let r=this.getAnimatingItems();this.callback(r),this.cleanUpLeavingElements()}this.shouldStep()?(this.lastAnimationTime=t,window.requestAnimationFrame(this.step)):this.lastAnimationTime=void 0});c2(this,"setHovered",t=>{var i;if(!g5((i=this.currentHoveredItem)==null?void 0:i.item,t)){if(this.currentHoveredItem!==void 0&&this.addToLeavingItems(this.currentHoveredItem),t!==void 0){let l=this.removeFromLeavingItems(t);this.currentHoveredItem={item:t,hoverAmount:l}}else this.currentHoveredItem=void 0;this.lastAnimationTime===void 0&&window.requestAnimationFrame(this.step)}});this.callback=t}};var _8=class{constructor(t){c2(this,"fn");c2(this,"val");this.fn=t}get value(){var t;return(t=this.val)!=null?t:this.val=this.fn()}};function W8(e){return new _8(e)}var Ls=W8(()=>window.navigator.userAgent.includes("Firefox")),i9=W8(()=>window.navigator.userAgent.includes("Mac OS")&&window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome")),V5=W8(()=>window.navigator.platform.toLowerCase().startsWith("mac"));var d5=F1(Y1(),1);function Vs(e){let t=d5.useRef([]),i=d5.useRef(0),l=d5.useRef(e);l.current=e;let r=d5.useCallback(()=>{let s=()=>window.requestAnimationFrame(a),a=()=>{let o=t.current.map(X5);t.current=[],l.current(new R4(o)),t.current.length>0?i.current++:i.current=0};window.requestAnimationFrame(i.current>600?s:a)},[]);return d5.useCallback(s=>{t.current.length===0&&r();let a=F0(s[0],s[1]);t.current.includes(a)||t.current.push(a)},[r])}var B4="header",S0="group-header",l9="out-of-bounds",u5;(function(e){e[e.Start=-2]="Start",e[e.StartPadding=-1]="StartPadding",e[e.Center=0]="Center",e[e.EndPadding=1]="EndPadding",e[e.End=2]="End"})(u5||(u5={}));function l3(e,t){return e===t?!0:(e==null?void 0:e.kind)==="out-of-bounds"?(e==null?void 0:e.kind)===(t==null?void 0:t.kind)&&(e==null?void 0:e.location[0])===(t==null?void 0:t.location[0])&&(e==null?void 0:e.location[1])===(t==null?void 0:t.location[1])&&(e==null?void 0:e.region[0])===(t==null?void 0:t.region[0])&&(e==null?void 0:e.region[1])===(t==null?void 0:t.region[1]):(e==null?void 0:e.kind)===(t==null?void 0:t.kind)&&(e==null?void 0:e.location[0])===(t==null?void 0:t.location[0])&&(e==null?void 0:e.location[1])===(t==null?void 0:t.location[1])}var ds=6,bH=(e,t)=>{var l;if(e.kind===c1.Custom)return e.copyData;let i=t==null?void 0:t(e);return(l=i==null?void 0:i.getAccessibilityString(e))!=null?l:""},FH=(e,t)=>{var m4,g0,H0,i0,h0,S5,i7,g9,L0,N0;let{width:i,height:l,accessibilityHeight:r,columns:s,cellXOffset:a,cellYOffset:o,headerHeight:n,fillHandle:C=!1,groupHeaderHeight:c,rowHeight:h,rows:g,getCellContent:m,getRowThemeOverride:w,onHeaderMenuClick:L,enableGroups:v,isFilling:V,onCanvasFocused:u,onCanvasBlur:d,isFocused:p,selection:Z,freezeColumns:R,onContextMenu:x,freezeTrailingRows:N,fixedShadowX:E=!0,fixedShadowY:S=!0,drawFocusRing:k,onMouseDown:b,onMouseUp:D,onMouseMoveRaw:B,onMouseMove:_,onItemHovered:K,dragAndDropState:Q,firstColAccessible:m1,onKeyDown:g1,onKeyUp:w1,highlightRegions:G,canvasRef:s1,onDragStart:o1,onDragEnd:R1,eventTargetRef:J,isResizing:I1,resizeColumn:p1,isDragging:e2,isDraggable:H1=!1,allowResize:W1,disabledRows:E2,hasAppendRow:Z2,getGroupDetails:u2,theme:y1,prelightCells:t2,headerIcons:w2,verticalBorder:i2,drawCell:a1,drawHeader:T1,onCellFocused:l2,onDragOverCell:q1,onDrop:S1,onDragLeave:$1,imageWindowLoader:U1,smoothScrollX:H2=!1,smoothScrollY:t1=!1,experimental:V1,getCellRenderer:f1}=e,b1=(m4=e.translateX)!=null?m4:0,z2=(g0=e.translateY)!=null?g0:0,n1=Math.max(R,Math.min(s.length-1,a)),L1=e1.useRef(null),l1=U1,M1=e1.useRef(),[Z1,R2]=e1.useState(!1),Q2=e1.useRef([]),e0=e1.useRef(),[t0,c0]=e1.useState(),[Y2,J2]=e1.useState(),k0=e1.useRef(null),[C2,m2]=e1.useState(),[L2,A2]=e1.useState(!1),y2=e1.useRef(L2);y2.current=L2;let F2=e1.useMemo(()=>new X7(w2,()=>{p4.current=void 0,j4.current()}),[w2]),Z0=v?c+n:n,o4=e1.useRef(-1),T0=((H0=V1==null?void 0:V1.enableFirefoxRescaling)!=null?H0:!1)&&Ls.value,m0=((i0=V1==null?void 0:V1.enableSafariRescaling)!=null?i0:!1)&&i9.value;e1.useLayoutEffect(()=>{window.devicePixelRatio===1||!T0&&!m0||(o4.current!==-1&&R2(!0),window.clearTimeout(o4.current),o4.current=window.setTimeout(()=>{R2(!1),o4.current=-1},200))},[o,n1,b1,z2,T0,m0]);let B1=mt(s,R),S2=E?Z4(B1,Q):0,X1=e1.useCallback((z,j,x1)=>{let v1=z.getBoundingClientRect();if(j>=B1.length||x1>=g)return;let C1=v1.width/i,Y=P9(j,x1,i,l,c,Z0,n1,o,b1,z2,g,R,N,B1,h);return C1!==1&&(Y.x*=C1,Y.y*=C1,Y.width*=C1,Y.height*=C1),Y.x+=v1.x,Y.y+=v1.y,Y},[i,l,c,Z0,n1,o,b1,z2,g,R,N,B1,h]),N2=e1.useCallback((z,j,x1,v1)=>{var O2,V0;let C1=z.getBoundingClientRect(),Y=C1.width/i,_1=(j-C1.left)/Y,K1=(x1-C1.top)/Y,h1=5,q2=T9(B1,n1,i,void 0,b1),r2=0,G1=0;v1 instanceof MouseEvent&&(r2=v1.button,G1=v1.buttons);let d2=Lt(_1,q2,b1),Q1=Vt(K1,l,v,n,c,g,h,o,z2,N),k2=(v1==null?void 0:v1.shiftKey)===!0,l0=(v1==null?void 0:v1.ctrlKey)===!0,K0=(v1==null?void 0:v1.metaKey)===!0,$2=v1!==void 0&&!(v1 instanceof MouseEvent)||(v1==null?void 0:v1.pointerType)==="touch",U2=[_1<0?-1:i<_1?1:0,K1i||K1>l){let v2=_1>i?1:_1<0?-1:0,J0=K1>l?1:K1<0?-1:0,M0=v2*2,e4=J0*2;v2===0&&(M0=d2===-1?u5.EndPadding:u5.Center),J0===0&&(e4=Q1===void 0?u5.EndPadding:u5.Center);let X0=!1;if(d2===-1&&Q1===-1){let Q4=X1(z,B1.length-1,-1);d0(Q4!==void 0),X0=ji&&_1l&&K1=0?(J0=!0,v2=X1(z,M0,Q1),d0(v2!==void 0),I2={kind:v&&Q1===-2?S0:B4,location:[M0,Q1],bounds:v2,group:(O2=B1[M0].group)!=null?O2:"",isEdge:J0,shiftKey:k2,ctrlKey:l0,metaKey:K0,isTouch:$2,localEventX:j-v2.x,localEventY:x1-v2.y,button:r2,buttons:G1,scrollEdge:U2}):I2={kind:v&&Q1===-2?S0:B4,group:(V0=B1[d2].group)!=null?V0:"",location:[d2,Q1],bounds:v2,isEdge:J0,shiftKey:k2,ctrlKey:l0,metaKey:K0,isTouch:$2,localEventX:j-v2.x,localEventY:x1-v2.y,button:r2,buttons:G1,scrollEdge:U2}}else{let v2=X1(z,d2,Q1);d0(v2!==void 0);let J0=v2!==void 0&&v2.x+v2.width-j{}),v4=e1.useRef(t0);v4.current=t0;let[P0,q0]=e1.useMemo(()=>{let z=document.createElement("canvas"),j=document.createElement("canvas");return z.style.display="none",z.style.opacity="0",z.style.position="fixed",j.style.display="none",j.style.opacity="0",j.style.position="fixed",[z.getContext("2d",{alpha:!1}),j.getContext("2d",{alpha:!1})]},[]);e1.useLayoutEffect(()=>{if(!(P0===null||q0===null))return document.documentElement.append(P0.canvas),document.documentElement.append(q0.canvas),()=>{P0.canvas.remove(),q0.canvas.remove()}},[P0,q0]);let z4=e1.useMemo(()=>new q7,[]),K9=T0&&Z1?1:m0&&Z1?2:5,X9=(V1==null?void 0:V1.disableMinimumCellWidth)===!0?1:10,p4=e1.useRef(),f5=e1.useRef(null),Z5=e1.useRef(null),E5=e1.useCallback(()=>{var _1,K1,h1;let z=L1.current,j=k0.current;if(z===null||j===null||(f5.current===null&&(f5.current=z.getContext("2d",{alpha:!1}),z.width=0,z.height=0),Z5.current===null&&(Z5.current=j.getContext("2d",{alpha:!1}),j.width=0,j.height=0),f5.current===null||Z5.current===null||P0===null||q0===null))return;let x1=!1,v1=q2=>{x1=!0,m2(q2)},C1=p4.current,Y={headerCanvasCtx:Z5.current,canvasCtx:f5.current,bufferACtx:P0,bufferBCtx:q0,width:i,height:l,cellXOffset:n1,cellYOffset:o,translateX:Math.round(b1),translateY:Math.round(z2),mappedColumns:B1,enableGroups:v,freezeColumns:R,dragAndDropState:Q,theme:y1,headerHeight:n,groupHeaderHeight:c,disabledRows:E2!=null?E2:x2.empty(),rowHeight:h,verticalBorder:i2,isResizing:I1,resizeCol:p1,isFocused:p,selection:Z,fillHandle:C,drawCellCallback:a1,hasAppendRow:Z2,overrideCursor:v1,maxScaleFactor:K9,freezeTrailingRows:N,rows:g,drawFocus:k,getCellContent:m,getGroupDetails:u2!=null?u2:q2=>({name:q2}),getRowThemeOverride:w,drawHeaderCallback:T1,prelightCells:t2,highlightRegions:G,imageLoader:l1,lastBlitData:e0,damage:M1.current,hoverValues:Q2.current,hoverInfo:v4.current,spriteManager:F2,scrolling:Z1,hyperWrapping:(_1=V1==null?void 0:V1.hyperWrapping)!=null?_1:!1,touchMode:L2,enqueue:Q0.current,renderStateProvider:z4,renderStrategy:(K1=V1==null?void 0:V1.renderStrategy)!=null?K1:i9.value?"double-buffer":"single-buffer",getCellRenderer:f1,minimumCellWidth:X9};Y.damage===void 0?(p4.current=Y,I8(Y,C1)):I8(Y,void 0),!x1&&(Y.damage===void 0||Y.damage.has((h1=v4==null?void 0:v4.current)==null?void 0:h1[0]))&&m2(void 0)},[P0,q0,i,l,n1,o,b1,z2,B1,v,R,Q,y1,n,c,E2,h,i2,I1,Z2,p1,p,Z,C,N,g,k,K9,m,u2,w,a1,T1,t2,G,l1,F2,Z1,V1==null?void 0:V1.hyperWrapping,V1==null?void 0:V1.renderStrategy,L2,z4,f1,X9]),j4=e1.useRef(E5);e1.useLayoutEffect(()=>{E5(),j4.current=E5},[E5]),e1.useLayoutEffect(()=>{(async()=>{var j;((j=document==null?void 0:document.fonts)==null?void 0:j.ready)!==void 0&&(await document.fonts.ready,p4.current=void 0,j4.current())})()},[]);let T4=e1.useCallback(z=>{M1.current=z,j4.current(),M1.current=void 0},[]),j9=Vs(T4);Q0.current=j9;let Y9=e1.useCallback(z=>{T4(new R4(z.map(j=>j.cell)))},[T4]);l1.setCallback(T4);let[w3,g3]=e1.useState(!1),[N5,y4]=j1!=null?j1:[],H3=N5!==void 0&&y4===-1,L3=N5!==void 0&&y4===-2,Q9=!1,R5=!1,s0=C2;if(s0===void 0&&N5!==void 0&&y4!==void 0&&y4>-1&&y4({contain:"strict",display:"block",cursor:B5}),[B5]),o9=e1.useRef("default"),P4=J==null?void 0:J.current;P4!=null&&o9.current!==z5.cursor&&(P4.style.cursor=o9.current=z5.cursor);let U0=e1.useCallback((z,j,x1,v1)=>{if(u2===void 0)return;let C1=u2(z);if(C1.actions!==void 0){let Y=u8(j,C1.actions);for(let[_1,K1]of Y.entries())if(G4(K1,x1+j.x,v1+K1.y))return C1.actions[_1]}},[u2]),n4=e1.useCallback((z,j,x1,v1)=>{let C1=s[j];if(!e2&&!I1&&C1.hasMenu===!0&&!(Y2!=null&&Y2)){let Y=X1(z,j,-1);d0(Y!==void 0);let _1=d8(Y.x,Y.y,Y.width,Y.height,$5(C1.title)==="rtl");if(x1>_1.x&&x1<_1.x+_1.width&&v1>_1.y&&v1<_1.y+_1.height)return Y}},[s,X1,Y2,e2,I1]),n9=e1.useRef(0),D4=e1.useRef(),C9=e1.useRef(!1),B0=e1.useCallback(z=>{let j=L1.current,x1=J==null?void 0:J.current;if(j===null||z.target!==j&&z.target!==x1)return;C9.current=!0;let v1,C1;if(z instanceof MouseEvent?(v1=z.clientX,C1=z.clientY):(v1=z.touches[0].clientX,C1=z.touches[0].clientY),z.target===x1&&x1!==null){let _1=x1.getBoundingClientRect();if(v1>_1.right||C1>_1.bottom)return}let Y=N2(j,v1,C1,z);D4.current=Y.location,Y.isTouch&&(n9.current=Date.now()),y2.current!==Y.isTouch&&A2(Y.isTouch),!(Y.kind===B4&&n4(j,Y.location[0],v1,C1)!==void 0)&&(Y.kind===S0&&U0(Y.group,Y.bounds,Y.localEventX,Y.localEventY)!==void 0||(b==null||b(Y),!Y.isTouch&&H1!==!0&&H1!==Y.kind&&Y.button<3&&Y.button!==1&&z.preventDefault()))},[J,H1,N2,U0,n4,b]);n0("touchstart",B0,window,!1),n0("mousedown",B0,window,!1);let y5=e1.useRef(0),c9=e1.useCallback(z=>{var G1,d2;let j=y5.current;y5.current=Date.now();let x1=L1.current;if(C9.current=!1,D===void 0||x1===null)return;let v1=J==null?void 0:J.current,C1=z.target!==x1&&z.target!==v1,Y,_1,K1=!0;if(z instanceof MouseEvent){if(Y=z.clientX,_1=z.clientY,K1=z.button<3,z.pointerType==="touch")return}else Y=z.changedTouches[0].clientX,_1=z.changedTouches[0].clientY;let h1=N2(x1,Y,_1,z);h1.isTouch&&n9.current!==0&&Date.now()-n9.current>500&&(h1=P(y({},h1),{isLongTouch:!0})),j!==0&&Date.now()-j<(h1.isTouch?1e3:500)&&(h1=P(y({},h1),{isDoubleClick:!0})),y2.current!==h1.isTouch&&A2(h1.isTouch),!C1&&z.cancelable&&K1&&z.preventDefault();let[q2]=h1.location,r2=n4(x1,q2,Y,_1);if(h1.kind===B4&&r2!==void 0){(h1.button!==0||((G1=D4.current)==null?void 0:G1[0])!==q2||((d2=D4.current)==null?void 0:d2[1])!==-1)&&D(h1,!0);return}else if(h1.kind===S0){let Q1=U0(h1.group,h1.bounds,h1.localEventX,h1.localEventY);if(Q1!==void 0){h1.button===0&&Q1.onClick(h1);return}}D(h1,C1)},[D,J,N2,n4,U0]);n0("mouseup",c9,window,!1),n0("touchend",c9,window,!1);let J9=e1.useCallback(z=>{var r2,G1;let j=L1.current;if(j===null)return;let x1=J==null?void 0:J.current,v1=z.target!==j&&z.target!==x1,C1,Y,_1=!0;z instanceof MouseEvent?(C1=z.clientX,Y=z.clientY,_1=z.button<3):(C1=z.changedTouches[0].clientX,Y=z.changedTouches[0].clientY);let K1=N2(j,C1,Y,z);y2.current!==K1.isTouch&&A2(K1.isTouch),!v1&&z.cancelable&&_1&&z.preventDefault();let[h1]=K1.location,q2=n4(j,h1,C1,Y);if(K1.kind===B4&&q2!==void 0)K1.button===0&&((r2=D4.current)==null?void 0:r2[0])===h1&&((G1=D4.current)==null?void 0:G1[1])===-1&&(L==null||L(h1,q2));else if(K1.kind===S0){let d2=U0(K1.group,K1.bounds,K1.localEventX,K1.localEventY);d2!==void 0&&K1.button===0&&d2.onClick(K1)}},[J,N2,n4,L,U0]);n0("click",J9,window,!1);let V3=e1.useCallback(z=>{let j=L1.current,x1=J==null?void 0:J.current;if(j===null||z.target!==j&&z.target!==x1||x===void 0)return;let v1=N2(j,z.clientX,z.clientY,z);x(v1,()=>{z.cancelable&&z.preventDefault()})},[J,N2,x]);n0("contextmenu",V3,(h0=J==null?void 0:J.current)!=null?h0:null,!1);let e7=e1.useCallback(z=>{M1.current=new R4(z.map(j=>j.item)),Q2.current=z,j4.current(),M1.current=void 0},[]),C4=e1.useMemo(()=>new i3(e7),[e7]),b4=e1.useRef(C4);b4.current=C4,e1.useLayoutEffect(()=>{let z=b4.current;if(j1===void 0||j1[1]<0){z.setHovered(j1);return}let j=m(j1,!0),x1=f1(j),v1=x1===void 0&&j.kind===c1.Custom||(x1==null?void 0:x1.needsHover)!==void 0&&(typeof x1.needsHover=="boolean"?x1.needsHover:x1.needsHover(j));z.setHovered(v1?j1:void 0)},[m,f1,j1]);let G0=e1.useRef(),A=e1.useCallback(z=>{var K1;let j=L1.current;if(j===null)return;let x1=J==null?void 0:J.current,v1=z.target!==j&&z.target!==x1,C1=N2(j,z.clientX,z.clientY,z);if(C1.kind!=="out-of-bounds"&&v1&&!C9.current&&!C1.isTouch)return;let Y=(h1,q2)=>{c0(r2=>r2===h1||(r2==null?void 0:r2[0][0])===(h1==null?void 0:h1[0][0])&&(r2==null?void 0:r2[0][1])===(h1==null?void 0:h1[0][1])&&((r2==null?void 0:r2[1][0])===(h1==null?void 0:h1[1][0])&&(r2==null?void 0:r2[1][1])===(h1==null?void 0:h1[1][1])||!q2)?r2:h1)};if(!l3(C1,G0.current))m2(void 0),K==null||K(C1),Y(C1.kind===l9?void 0:[C1.location,[C1.localEventX,C1.localEventY]],!0),G0.current=C1;else if(C1.kind==="cell"||C1.kind===B4||C1.kind===S0){let h1=!1,q2=!0;if(C1.kind==="cell"){let G1=m(C1.location),d2=(K1=f1(G1))==null?void 0:K1.needsHoverPosition;q2=d2!=null?d2:G1.kind===c1.Custom,h1=q2}else C1.kind===S0&&(h1=!0);let r2=[C1.location,[C1.localEventX,C1.localEventY]];Y(r2,q2),v4.current=r2,h1&&T4(new R4([C1.location]))}let _1=C1.location[0]>=(m1?0:1);J2(C1.kind===B4&&C1.isEdge&&_1&&W1===!0),g3(C1.kind==="cell"&&C1.isFillHandle),B==null||B(z),_(C1)},[J,N2,m1,W1,B,_,K,m,f1,T4]);n0("mousemove",A,window,!0);let W2=e1.useCallback(z=>{let j=L1.current;if(j===null)return;let x1,v1;Z.current!==void 0&&(x1=X1(j,Z.current.cell[0],Z.current.cell[1]),v1=Z.current.cell),g1==null||g1({bounds:x1,stopPropagation:()=>z.stopPropagation(),preventDefault:()=>z.preventDefault(),cancel:()=>{},ctrlKey:z.ctrlKey,metaKey:z.metaKey,shiftKey:z.shiftKey,altKey:z.altKey,key:z.key,keyCode:z.keyCode,rawEvent:z,location:v1})},[g1,Z,X1]),Y4=e1.useCallback(z=>{let j=L1.current;if(j===null)return;let x1,v1;Z.current!==void 0&&(x1=X1(j,Z.current.cell[0],Z.current.cell[1]),v1=Z.current.cell),w1==null||w1({bounds:x1,stopPropagation:()=>z.stopPropagation(),preventDefault:()=>z.preventDefault(),cancel:()=>{},ctrlKey:z.ctrlKey,metaKey:z.metaKey,shiftKey:z.shiftKey,altKey:z.altKey,key:z.key,keyCode:z.keyCode,rawEvent:z,location:v1})},[w1,Z,X1]),d3=e1.useCallback(z=>{L1.current=z,s1!==void 0&&(s1.current=z)},[s1]),t7=e1.useCallback(z=>{var G1;let j=L1.current;if(j===null||H1===!1||I1){z.preventDefault();return}let x1,v1,C1=N2(j,z.clientX,z.clientY);if(H1!==!0&&C1.kind!==H1){z.preventDefault();return}let Y=(d2,Q1)=>{x1=d2,v1=Q1},_1,K1,h1,q2=(d2,Q1,k2)=>{_1=d2,K1=Q1,h1=k2},r2=!1;if(o1==null||o1(P(y({},C1),{setData:Y,setDragImage:q2,preventDefault:()=>r2=!0,defaultPrevented:()=>r2})),!r2&&x1!==void 0&&v1!==void 0&&z.dataTransfer!==null)if(z.dataTransfer.setData(x1,v1),z.dataTransfer.effectAllowed="copyLink",_1!==void 0&&K1!==void 0&&h1!==void 0)z.dataTransfer.setDragImage(_1,K1,h1);else{let[d2,Q1]=C1.location;if(Q1!==void 0){let k2=document.createElement("canvas"),l0=X1(j,d2,Q1);d0(l0!==void 0);let K0=Math.ceil((G1=window.devicePixelRatio)!=null?G1:1);k2.width=l0.width*K0,k2.height=l0.height*K0;let $2=k2.getContext("2d");$2!==null&&($2.scale(K0,K0),$2.textBaseline="middle",Q1===-1?($2.font=y1.headerFontFull,$2.fillStyle=y1.bgHeader,$2.fillRect(0,0,k2.width,k2.height),v8($2,0,0,l0.width,l0.height,B1[d2],!1,y1,!1,!1,0,F2,T1,!1)):($2.font=y1.baseFontFull,$2.fillStyle=y1.bgCell,$2.fillRect(0,0,k2.width,k2.height),V8($2,m([d2,Q1]),0,Q1,!1,!1,0,0,l0.width,l0.height,!1,y1,y1.bgCell,l1,F2,1,void 0,!1,0,void 0,void 0,void 0,z4,f1,()=>{}))),k2.style.left="-100%",k2.style.position="absolute",k2.style.width=`${l0.width}px`,k2.style.height=`${l0.height}px`,document.body.append(k2),z.dataTransfer.setDragImage(k2,l0.width/2,l0.height/2),window.setTimeout(()=>{k2.remove()},0)}}else z.preventDefault()},[H1,I1,N2,o1,X1,y1,B1,F2,T1,m,l1,z4,f1]);n0("dragstart",t7,(S5=J==null?void 0:J.current)!=null?S5:null,!1,!1);let m9=e1.useRef(),u3=e1.useCallback(z=>{var h1;let j=L1.current;if(S1!==void 0&&z.preventDefault(),j===null||q1===void 0)return;let x1=N2(j,z.clientX,z.clientY),[v1,C1]=x1.location,Y=v1-(m1?0:1),[_1,K1]=(h1=m9.current)!=null?h1:[];(_1!==Y||K1!==C1)&&(m9.current=[Y,C1],q1([Y,C1],z.dataTransfer))},[m1,N2,q1,S1]);n0("dragover",u3,(i7=J==null?void 0:J.current)!=null?i7:null,!1,!1);let h9=e1.useCallback(()=>{m9.current=void 0,R1==null||R1()},[R1]);n0("dragend",h9,(g9=J==null?void 0:J.current)!=null?g9:null,!1,!1);let W=e1.useCallback(z=>{let j=L1.current;if(j===null||S1===void 0)return;z.preventDefault();let x1=N2(j,z.clientX,z.clientY),[v1,C1]=x1.location,Y=v1-(m1?0:1);S1([Y,C1],z.dataTransfer)},[m1,N2,S1]);n0("drop",W,(L0=J==null?void 0:J.current)!=null?L0:null,!1,!1);let E0=e1.useCallback(()=>{$1==null||$1()},[$1]);n0("dragleave",E0,(N0=J==null?void 0:J.current)!=null?N0:null,!1,!1);let a0=e1.useRef(Z);a0.current=Z;let b5=e1.useRef(null),w9=e1.useCallback(z=>{var j;L1.current===null||!L1.current.contains(document.activeElement)||(z===null&&a0.current.current!==void 0?(j=s1==null?void 0:s1.current)==null||j.focus({preventScroll:!0}):z!==null&&z.focus({preventScroll:!0}),b5.current=z)},[s1]);e1.useImperativeHandle(t,()=>({focus:()=>{var j;let z=b5.current;z===null||!document.contains(z)?(j=s1==null?void 0:s1.current)==null||j.focus({preventScroll:!0}):z.focus({preventScroll:!0})},getBounds:(z,j)=>{if(!(s1===void 0||s1.current===null))return X1(s1.current,z!=null?z:0,j!=null?j:-1)},damage:Y9}),[s1,Y9,X1]);let A4=e1.useRef(),D0=Ie(()=>{var K1,h1,q2,r2;if(i<50||(V1==null?void 0:V1.disableAccessibilityTree)===!0)return null;let z=T9(B1,n1,i,Q,b1),j=m1?0:-1;!m1&&((K1=z[0])==null?void 0:K1.sourceIndex)===0&&(z=z.slice(1));let[x1,v1]=(q2=(h1=Z.current)==null?void 0:h1.cell)!=null?q2:[],C1=(r2=Z.current)==null?void 0:r2.range,Y=z.map(G1=>G1.sourceIndex),_1=(0,us.default)(o,Math.min(g,o+r));return x1!==void 0&&v1!==void 0&&!(Y.includes(x1)&&_1.includes(v1))&&w9(null),e1.createElement("table",{key:"access-tree",role:"grid","aria-rowcount":g+1,"aria-multiselectable":"true","aria-colcount":B1.length+j},e1.createElement("thead",{role:"rowgroup"},e1.createElement("tr",{role:"row","aria-rowindex":1},z.map(G1=>e1.createElement("th",{role:"columnheader","aria-selected":Z.columns.hasIndex(G1.sourceIndex),"aria-colindex":G1.sourceIndex+1+j,tabIndex:-1,onFocus:d2=>{if(d2.target!==b5.current)return l2==null?void 0:l2([G1.sourceIndex,-1])},key:G1.sourceIndex},G1.title)))),e1.createElement("tbody",{role:"rowgroup"},_1.map(G1=>e1.createElement("tr",{role:"row","aria-selected":Z.rows.hasIndex(G1),key:G1,"aria-rowindex":G1+2},z.map(d2=>{let Q1=d2.sourceIndex,k2=F0(Q1,G1),l0=x1===Q1&&v1===G1,K0=C1!==void 0&&Q1>=C1.x&&Q1=C1.y&&G1{let O2=s1==null?void 0:s1.current;if(O2!=null)return g1==null?void 0:g1({bounds:X1(O2,Q1,G1),cancel:()=>{},preventDefault:()=>{},stopPropagation:()=>{},ctrlKey:!1,key:"Enter",keyCode:13,metaKey:!1,shiftKey:!1,altKey:!1,rawEvent:void 0,location:U2})},onFocusCapture:O2=>{var V0,v2;if(!(O2.target===b5.current||((V0=A4.current)==null?void 0:V0[0])===Q1&&((v2=A4.current)==null?void 0:v2[1])===G1))return A4.current=U2,l2==null?void 0:l2(U2)},ref:l0?w9:void 0,tabIndex:-1},bH(I2,f1))})))))},[i,B1,n1,Q,b1,g,o,r,Z,w9,m,s1,g1,X1,l2],200),c4=R===0||!E?0:n1>R?1:(0,q8.default)(-b1/100,0,1),v3=-o*32+z2,F5=S?(0,q8.default)(-v3/100,0,1):0,p3=e1.useMemo(()=>{if(!c4&&!F5)return null;let z={position:"absolute",top:0,left:S2,width:i-S2,height:l,opacity:c4,pointerEvents:"none",transition:H2?void 0:"opacity 0.2s",boxShadow:"inset 13px 0 10px -13px rgba(0, 0, 0, 0.2)"},j={position:"absolute",top:Z0,left:0,width:i,height:l,opacity:F5,pointerEvents:"none",transition:t1?void 0:"opacity 0.2s",boxShadow:"inset 0 13px 10px -13px rgba(0, 0, 0, 0.2)"};return e1.createElement(e1.Fragment,null,c4>0&&e1.createElement("div",{id:"shadow-x",style:z}),F5>0&&e1.createElement("div",{id:"shadow-y",style:j}))},[c4,F5,S2,i,H2,Z0,l,t1]),M3=e1.useMemo(()=>({position:"absolute",top:0,left:0}),[]);return e1.createElement(e1.Fragment,null,e1.createElement("canvas",{"data-testid":"data-grid-canvas",tabIndex:0,onKeyDown:W2,onKeyUp:Y4,onFocus:u,onBlur:d,ref:d3,style:z5},D0),e1.createElement("canvas",{ref:k0,style:M3}),p3)},vs=e1.memo(e1.forwardRef(FH));function $9(e,t,i,l){var r;return(0,ps.default)(Math.round(t-((r=e.growOffset)!=null?r:0)),Math.ceil(i),Math.floor(l))}var SH=e=>{var i2;let[t,i]=D2.useState(),[l,r]=D2.useState(),[s,a]=D2.useState(),[o,n]=D2.useState(),[C,c]=D2.useState(!1),[h,g]=D2.useState(),[m,w]=D2.useState(),[L,v]=D2.useState(),[V,u]=D2.useState(!1),[d,p]=D2.useState(),{onHeaderMenuClick:Z,getCellContent:R,onColumnMoved:x,onColumnResize:N,onColumnResizeStart:E,onColumnResizeEnd:S,gridRef:k,maxColumnWidth:b,minColumnWidth:D,onRowMoved:B,lockColumns:_,onColumnProposeMove:K,onMouseDown:Q,onMouseUp:m1,onItemHovered:g1,onDragStart:w1,canvasRef:G}=e,s1=((i2=N!=null?N:S)!=null?i2:E)!==void 0,{columns:o1,selection:R1}=e,J=R1.columns,I1=D2.useCallback(a1=>{let[T1,l2]=a1.location;s!==void 0&&o!==T1&&T1>=_?(c(!0),n(T1)):m!==void 0&&l2!==void 0?(u(!0),v(Math.max(0,l2))):l===void 0&&!C&&!V&&(g1==null||g1(a1))},[s,m,o,g1,_,l,C,V]),p1=x!==void 0,e2=D2.useCallback(a1=>{var T1,l2;if(a1.button===0){let[q1,S1]=a1.location;if(a1.kind==="out-of-bounds"&&a1.isEdge&&s1){let $1=(T1=k==null?void 0:k.current)==null?void 0:T1.getBounds(o1.length-1,-1);$1!==void 0&&(i($1.x),r(o1.length-1))}else if(a1.kind==="header"&&q1>=_){let $1=G==null?void 0:G.current;if(a1.isEdge&&s1&&$1){i(a1.bounds.x),r(q1);let H2=$1.getBoundingClientRect().width/$1.offsetWidth,t1=a1.bounds.width/H2;E==null||E(o1[q1],t1,q1,t1+((l2=o1[q1].growOffset)!=null?l2:0))}else a1.kind==="header"&&p1&&(g(a1.bounds.x),a(q1))}else a1.kind==="cell"&&_>0&&q1===0&&S1!==void 0&&B!==void 0&&(p(a1.bounds.y),w(S1))}Q==null||Q(a1)},[Q,s1,_,B,k,o1,p1,E,G]),H1=D2.useCallback((a1,T1)=>{C||V||Z==null||Z(a1,T1)},[C,V,Z]),W1=D2.useRef(-1),E2=D2.useCallback(()=>{W1.current=-1,w(void 0),v(void 0),p(void 0),u(!1),a(void 0),n(void 0),g(void 0),c(!1),r(void 0),i(void 0)},[]),Z2=D2.useCallback((a1,T1)=>{var l2,q1,S1;if(a1.button===0){if(l!==void 0){if((J==null?void 0:J.hasIndex(l))===!0)for(let U1 of J){if(U1===l)continue;let H2=o1[U1],t1=$9(H2,W1.current,D,b);N==null||N(H2,t1,U1,t1+((l2=H2.growOffset)!=null?l2:0))}let $1=$9(o1[l],W1.current,D,b);if(S==null||S(o1[l],$1,l,$1+((q1=o1[l].growOffset)!=null?q1:0)),J.hasIndex(l))for(let U1 of J){if(U1===l)continue;let H2=o1[U1],t1=$9(H2,W1.current,D,b);S==null||S(H2,t1,U1,t1+((S1=H2.growOffset)!=null?S1:0))}}E2(),s!==void 0&&o!==void 0&&(x==null||x(s,o)),m!==void 0&&L!==void 0&&(B==null||B(m,L))}m1==null||m1(a1,T1)},[m1,l,s,o,m,L,J,S,o1,D,b,N,x,B,E2]),u2=D2.useMemo(()=>{if(!(s===void 0||o===void 0)&&s!==o&&(K==null?void 0:K(s,o))!==!1)return{src:s,dest:o}},[s,o,K]),y1=D2.useCallback(a1=>{var l2,q1;let T1=G==null?void 0:G.current;if(s!==void 0&&h!==void 0)Math.abs(a1.clientX-h)>20&&c(!0);else if(m!==void 0&&d!==void 0)Math.abs(a1.clientY-d)>20&&u(!0);else if(l!==void 0&&t!==void 0&&T1){let $1=T1.getBoundingClientRect().width/T1.offsetWidth,U1=(a1.clientX-t)/$1,H2=o1[l],t1=$9(H2,U1,D,b);if(N==null||N(H2,t1,l,t1+((l2=H2.growOffset)!=null?l2:0)),W1.current=U1,(J==null?void 0:J.first())===l)for(let V1 of J){if(V1===l)continue;let f1=o1[V1],b1=$9(f1,W1.current,D,b);N==null||N(f1,b1,V1,b1+((q1=f1.growOffset)!=null?q1:0))}}},[s,h,m,d,l,t,o1,D,b,N,J,G]),t2=D2.useCallback((a1,T1)=>{if(m===void 0||L===void 0)return R(a1,T1);let[l2,q1]=a1;return q1===L?q1=m:(q1>L&&(q1-=1),q1>=m&&(q1+=1)),R([l2,q1],T1)},[m,L,R]),w2=D2.useCallback(a1=>{w1==null||w1(a1),a1.defaultPrevented()||E2()},[E2,w1]);return D2.createElement(vs,{accessibilityHeight:e.accessibilityHeight,canvasRef:e.canvasRef,cellXOffset:e.cellXOffset,cellYOffset:e.cellYOffset,columns:e.columns,disabledRows:e.disabledRows,drawFocusRing:e.drawFocusRing,drawHeader:e.drawHeader,drawCell:e.drawCell,enableGroups:e.enableGroups,eventTargetRef:e.eventTargetRef,experimental:e.experimental,fillHandle:e.fillHandle,firstColAccessible:e.firstColAccessible,fixedShadowX:e.fixedShadowX,fixedShadowY:e.fixedShadowY,freezeColumns:e.freezeColumns,getCellRenderer:e.getCellRenderer,getGroupDetails:e.getGroupDetails,getRowThemeOverride:e.getRowThemeOverride,groupHeaderHeight:e.groupHeaderHeight,headerHeight:e.headerHeight,headerIcons:e.headerIcons,height:e.height,highlightRegions:e.highlightRegions,imageWindowLoader:e.imageWindowLoader,resizeColumn:l,isDraggable:e.isDraggable,isFilling:e.isFilling,isFocused:e.isFocused,onCanvasBlur:e.onCanvasBlur,onCanvasFocused:e.onCanvasFocused,onCellFocused:e.onCellFocused,onContextMenu:e.onContextMenu,onDragEnd:e.onDragEnd,onDragLeave:e.onDragLeave,onDragOverCell:e.onDragOverCell,onDrop:e.onDrop,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,onMouseMove:e.onMouseMove,prelightCells:e.prelightCells,rowHeight:e.rowHeight,rows:e.rows,selection:e.selection,smoothScrollX:e.smoothScrollX,smoothScrollY:e.smoothScrollY,theme:e.theme,freezeTrailingRows:e.freezeTrailingRows,hasAppendRow:e.hasAppendRow,translateX:e.translateX,translateY:e.translateY,verticalBorder:e.verticalBorder,width:e.width,getCellContent:t2,isResizing:l!==void 0,onHeaderMenuClick:H1,isDragging:C,onItemHovered:I1,onDragStart:w2,onMouseDown:e2,allowResize:s1,onMouseUp:Z2,dragAndDropState:u2,onMouseMoveRaw:y1,ref:k})},Ms=SH;var V2=F1(Y1(),1);var r9=F1(Y1(),1);function xs(e){let t=(0,r9.useRef)(null),[i,l]=(0,r9.useState)({width:e==null?void 0:e[0],height:e==null?void 0:e[1]});return(0,r9.useLayoutEffect)(()=>{let r=a=>{for(let o of a){let{width:n,height:C}=o&&o.contentRect||{};l(c=>c.width===n&&c.height===C?c:{width:n,height:C})}},s=new window.ResizeObserver(r);return t.current&&s.observe(t.current,void 0),()=>{s.disconnect()}},[t.current]),y({ref:t},i)}var K4=F1(Y1(),1),kH=(e,t,i)=>{let l=(0,K4.useRef)(null),r=(0,K4.useRef)(null),s=(0,K4.useRef)(null),a=(0,K4.useRef)(0),o=(0,K4.useRef)(t);o.current=t;let n=i.current;(0,K4.useEffect)(()=>{let C=()=>{var g,m;if(r.current===!1&&n!==null){let w=[n.scrollLeft,n.scrollTop];if(((g=s.current)==null?void 0:g[0])===w[0]&&((m=s.current)==null?void 0:m[1])===w[1])if(a.current>10){s.current=null,r.current=null;return}else a.current++;else a.current=0,o.current(w[0],w[1]),s.current=w;l.current=window.setTimeout(C,8.333333333333334)}},c=()=>{r.current=!0,s.current=null,l.current!==null&&(window.clearTimeout(l.current),l.current=null)},h=g=>{g.touches.length===0&&(r.current=!1,a.current=0,l.current=window.setTimeout(C,8.333333333333334))};if(e&&n!==null){let g=n;return g.addEventListener("touchstart",c),g.addEventListener("touchend",h),()=>{g.removeEventListener("touchstart",c),g.removeEventListener("touchend",h),l.current!==null&&window.clearTimeout(l.current)}}},[e,n])},fs=kH;var TH=()=>e=>e.isSafari?"scroll":"auto",PH=X2("div")({name:"ScrollRegionStyle",class:"gdg-s1dgczr6",propsAsIs:!1,vars:{"s1dgczr6-0":[TH()]}});function DH(e){let[t,i]=V2.useState(!1),l=typeof window=="undefined"?null:window,r=V2.useRef(0);return n0("touchstart",V2.useCallback(()=>{window.clearTimeout(r.current),i(!0)},[]),l,!0,!1),n0("touchend",V2.useCallback(s=>{s.touches.length===0&&(r.current=window.setTimeout(()=>i(!1),e))},[e]),l,!0,!1),t}var Zs=e=>{var o1,R1,J,I1;let{children:t,clientHeight:i,scrollHeight:l,scrollWidth:r,update:s,draggable:a,className:o,preventDiagonalScrolling:n=!1,paddingBottom:C=0,paddingRight:c=0,rightElement:h,rightElementProps:g,kineticScrollPerfHack:m=!1,scrollRef:w,initialSize:L}=e,v=[],V=(o1=g==null?void 0:g.sticky)!=null?o1:!1,u=(R1=g==null?void 0:g.fill)!=null?R1:!1,d=V2.useRef(0),p=V2.useRef(0),Z=V2.useRef(null),R=typeof window=="undefined"?1:window.devicePixelRatio,x=V2.useRef({scrollLeft:0,scrollTop:0,lockDirection:void 0}),N=V2.useRef(null),E=DH(200),[S,k]=V2.useState(!0),b=V2.useRef(0);V2.useLayoutEffect(()=>{if(!S||E||x.current.lockDirection===void 0)return;let p1=Z.current;if(p1===null)return;let[e2,H1]=x.current.lockDirection;e2!==void 0?p1.scrollLeft=e2:H1!==void 0&&(p1.scrollTop=H1),x.current.lockDirection=void 0},[E,S]);let D=V2.useCallback((p1,e2)=>{var l2,q1,S1,$1;let H1=Z.current;if(H1===null)return;e2=e2!=null?e2:H1.scrollTop,p1=p1!=null?p1:H1.scrollLeft;let W1=x.current.scrollTop,E2=x.current.scrollLeft,Z2=p1-E2,u2=e2-W1;E&&Z2!==0&&u2!==0&&(Math.abs(Z2)>3||Math.abs(u2)>3)&&n&&x.current.lockDirection===void 0&&(x.current.lockDirection=Math.abs(Z2)0&&(Math.abs(a1)>2e3||i2===0||i2===T1)&&l>H1.scrollHeight+5){let U1=i2/T1,H2=(l-w2)*U1;d.current=H2-i2}y1!==void 0&&(window.clearTimeout(b.current),k(!1),b.current=window.setTimeout(()=>k(!0),200)),s({x:p1,y:i2+d.current,width:t2-c,height:w2-C,paddingRight:($1=(S1=N.current)==null?void 0:S1.clientWidth)!=null?$1:0})},[C,c,l,s,n,E]);fs(m&&i9.value,D,Z);let B=V2.useRef(D);B.current=D;let _=V2.useRef(),K=V2.useRef(!1);V2.useLayoutEffect(()=>{K.current?D():K.current=!0},[D,C,c]);let Q=V2.useCallback(p1=>{Z.current=p1,w!==void 0&&(w.current=p1)},[w]),m1=0,g1=0;for(v.push(V2.createElement("div",{key:m1++,style:{width:r,height:0}}));g1B.current(),0),_.current={width:G,height:s1}),(G!=null?G:0)===0||(s1!=null?s1:0)===0?V2.createElement("div",{ref:w1}):V2.createElement("div",{ref:w1},V2.createElement(PH,{isSafari:i9.value},V2.createElement("div",{className:"dvn-underlay"},t),V2.createElement("div",{ref:Q,style:_.current,draggable:a,onDragStart:p1=>{a||(p1.stopPropagation(),p1.preventDefault())},className:"dvn-scroller "+(o!=null?o:""),onScroll:()=>D()},V2.createElement("div",{className:"dvn-scroll-inner"+(h===void 0?" dvn-hidden":"")},V2.createElement("div",{className:"dvn-stack"},v),h!==void 0&&V2.createElement(V2.Fragment,null,!u&&V2.createElement("div",{className:"dvn-spacer"}),V2.createElement("div",{ref:N,style:{height:s1,maxHeight:i-Math.ceil(R%1),position:"sticky",top:0,paddingLeft:1,marginBottom:-40,marginRight:c,flexGrow:u?1:void 0,right:V?c!=null?c:0:void 0,pointerEvents:"auto"}},h))))))};var AH=e=>{let{columns:t,rows:i,rowHeight:l,headerHeight:r,groupHeaderHeight:s,enableGroups:a,freezeColumns:o,experimental:n,nonGrowWidth:C,clientSize:c,className:h,onVisibleRegionChanged:g,scrollRef:m,preventDiagonalScrolling:w,rightElement:L,rightElementProps:v,overscrollX:V,overscrollY:u,initialSize:d,smoothScrollX:p=!1,smoothScrollY:Z=!1,isDraggable:R}=e,{paddingRight:x,paddingBottom:N}=n!=null?n:{},[E,S]=c,k=W0.useRef(),b=W0.useRef(),D=W0.useRef(),B=W0.useRef(),_=C+Math.max(0,V!=null?V:0),K=a?r+s:r;if(typeof l=="number")K+=i*l;else for(let w1=0;w1{var E2,Z2,u2;if(Q.current===void 0)return;let w1=y({},Q.current),G=0,s1=w1.x<0?-w1.x:0,o1=0,R1=0;w1.x=w1.x<0?0:w1.x;let J=0;for(let y1=0;y1=t2+y1.width)G+=y1.width,R1++,o1++;else if(w1.x>t2)G+=y1.width,p?s1+=t2-w1.x:R1++,o1++;else if(w1.x+w1.width>t2)G+=y1.width,o1++;else break}let I1=0,p1=0,e2=0;if(typeof l=="number")Z?(p1=Math.floor(w1.y/l),I1=p1*l-w1.y):p1=Math.ceil(w1.y/l),e2=Math.ceil(w1.height/l)+p1,I1<0&&e2++;else{let y1=0;for(let t2=0;t2=y1+w2)y1+=w2,p1++,e2++;else if(w1.y>i2)y1+=w2,Z?I1+=i2-w1.y:p1++,e2++;else if(w1.y+w1.height>w2/2+y1)y1+=w2,e2++;else break}}let H1={x:R1,y:p1,width:o1-R1,height:e2-p1},W1=k.current;(W1===void 0||W1.y!==H1.y||W1.x!==H1.x||W1.height!==H1.height||W1.width!==H1.width||b.current!==s1||D.current!==I1||w1.width!==((E2=B.current)==null?void 0:E2[0])||w1.height!==((Z2=B.current)==null?void 0:Z2[1]))&&(g==null||g({x:R1,y:p1,width:o1-R1,height:e2-p1},w1.width,w1.height,(u2=w1.paddingRight)!=null?u2:0,s1,I1),k.current=H1,b.current=s1,D.current=I1,B.current=[w1.width,w1.height])},[t,l,i,g,o,p,Z]),g1=W0.useCallback(w1=>{Q.current=w1,m1()},[m1]);return W0.useEffect(()=>{m1()},[m1]),W0.createElement(Zs,{scrollRef:m,className:h,kineticScrollPerfHack:n==null?void 0:n.kineticScrollPerfHack,preventDiagonalScrolling:w,draggable:R===!0||typeof R=="string",scrollWidth:_+(x!=null?x:0),scrollHeight:K+(N!=null?N:0),clientHeight:S,rightElement:L,paddingBottom:N,paddingRight:x,rightElementProps:v,update:g1,initialSize:d},W0.createElement(Ms,{eventTargetRef:m,width:E,height:S,accessibilityHeight:e.accessibilityHeight,canvasRef:e.canvasRef,cellXOffset:e.cellXOffset,cellYOffset:e.cellYOffset,columns:e.columns,disabledRows:e.disabledRows,enableGroups:e.enableGroups,fillHandle:e.fillHandle,firstColAccessible:e.firstColAccessible,fixedShadowX:e.fixedShadowX,fixedShadowY:e.fixedShadowY,freezeColumns:e.freezeColumns,getCellContent:e.getCellContent,getCellRenderer:e.getCellRenderer,getGroupDetails:e.getGroupDetails,getRowThemeOverride:e.getRowThemeOverride,groupHeaderHeight:e.groupHeaderHeight,headerHeight:e.headerHeight,highlightRegions:e.highlightRegions,imageWindowLoader:e.imageWindowLoader,isFilling:e.isFilling,isFocused:e.isFocused,lockColumns:e.lockColumns,maxColumnWidth:e.maxColumnWidth,minColumnWidth:e.minColumnWidth,onHeaderMenuClick:e.onHeaderMenuClick,onMouseMove:e.onMouseMove,prelightCells:e.prelightCells,rowHeight:e.rowHeight,rows:e.rows,selection:e.selection,theme:e.theme,freezeTrailingRows:e.freezeTrailingRows,hasAppendRow:e.hasAppendRow,translateX:e.translateX,translateY:e.translateY,onColumnProposeMove:e.onColumnProposeMove,verticalBorder:e.verticalBorder,drawFocusRing:e.drawFocusRing,drawHeader:e.drawHeader,drawCell:e.drawCell,experimental:e.experimental,gridRef:e.gridRef,headerIcons:e.headerIcons,isDraggable:e.isDraggable,onCanvasBlur:e.onCanvasBlur,onCanvasFocused:e.onCanvasFocused,onCellFocused:e.onCellFocused,onColumnMoved:e.onColumnMoved,onColumnResize:e.onColumnResize,onColumnResizeEnd:e.onColumnResizeEnd,onColumnResizeStart:e.onColumnResizeStart,onContextMenu:e.onContextMenu,onDragEnd:e.onDragEnd,onDragLeave:e.onDragLeave,onDragOverCell:e.onDragOverCell,onDragStart:e.onDragStart,onDrop:e.onDrop,onItemHovered:e.onItemHovered,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onRowMoved:e.onRowMoved,smoothScrollX:e.smoothScrollX,smoothScrollY:e.smoothScrollY}))},Es=AH;var Ns=X2("div")({name:"SearchWrapper",class:"gdg-seveqep",propsAsIs:!1});var IH=A1.createElement("svg",{className:"button-icon",viewBox:"0 0 512 512"},A1.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 244l144-144 144 144M256 120v292"})),OH=A1.createElement("svg",{className:"button-icon",viewBox:"0 0 512 512"},A1.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 268l144 144 144-144M256 392V100"})),_H=A1.createElement("svg",{className:"button-icon",viewBox:"0 0 512 512"},A1.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M368 368L144 144M368 144L144 368"})),WH=10,qH=e=>{let{canvasRef:t,cellYOffset:i,rows:l,columns:r,searchInputRef:s,searchValue:a,searchResults:o,onSearchValueChange:n,getCellsForSelection:C,onSearchResultsChanged:c,showSearch:h=!1,onSearchClose:g}=e,[m]=A1.useState(()=>"search-box-"+Math.round(Math.random()*1e3)),[w,L]=A1.useState(""),v=a!=null?a:w,V=A1.useCallback(G=>{L(G),n==null||n(G)},[n]),[u,d]=A1.useState(),p=A1.useRef(u);p.current=u,A1.useEffect(()=>{o!==void 0&&(o.length>0?d(G=>{var s1;return{rowsSearched:l,results:o.length,selectedIndex:(s1=G==null?void 0:G.selectedIndex)!=null?s1:-1}}):d(void 0))},[l,o]);let Z=A1.useRef();Z.current===void 0&&(Z.current=new AbortController);let R=A1.useRef(),[x,N]=A1.useState([]),E=o!=null?o:x,S=A1.useCallback(()=>{R.current!==void 0&&(window.cancelAnimationFrame(R.current),R.current=void 0,Z.current.abort())},[]),k=A1.useRef(i);k.current=i;let b=A1.useCallback(G=>{let s1=new RegExp(G.replace(/([$()*+.?[\\\]^{|}-])/g,"\\$1"),"i"),o1=k.current,R1=Math.min(10,l),J=0;d(void 0),N([]);let I1=[],p1=async()=>{var i2,a1;if(C===void 0)return;let e2=performance.now(),H1=l-J,W1=C({x:0,y:o1,width:r.length,height:Math.min(R1,H1,l-o1)},Z.current.signal);typeof W1=="function"&&(W1=await W1());let E2=!1;for(let[T1,l2]of W1.entries())for(let[q1,S1]of l2.entries()){let $1;switch(S1.kind){case c1.Text:case c1.Number:$1=S1.displayData;break;case c1.Uri:case c1.Markdown:$1=S1.data;break;case c1.Boolean:$1=typeof S1.data=="boolean"?S1.data.toString():void 0;break;case c1.Image:case c1.Bubble:$1=S1.data.join("\u{1F433}");break;case c1.Custom:$1=S1.copyData;break}$1!==void 0&&s1.test($1)&&(I1.push([q1,T1+o1]),E2=!0)}let Z2=performance.now();E2&&N([...I1]),J+=W1.length,d0(J<=l);let u2=(a1=(i2=p.current)==null?void 0:i2.selectedIndex)!=null?a1:-1;d({results:I1.length,rowsSearched:J,selectedIndex:u2}),c==null||c(I1,u2),o1+R1>=l?o1=0:o1+=R1;let y1=Z2-e2,t2=Math.max(y1,1),w2=WH/t2;R1=Math.ceil(R1*w2),J{var G;g==null||g(),d(void 0),N([]),c==null||c([],-1),S(),(G=t==null?void 0:t.current)==null||G.focus()},[S,t,g,c]),B=A1.useCallback(G=>{V(G.target.value),o===void 0&&(G.target.value===""?(d(void 0),N([]),S()):b(G.target.value))},[b,S,V,o]);A1.useEffect(()=>{h&&s.current!==null&&(V(""),s.current.focus({preventScroll:!0}))},[h,s,V]);let _=A1.useCallback(G=>{var o1;if((o1=G==null?void 0:G.stopPropagation)==null||o1.call(G),u===void 0)return;let s1=(u.selectedIndex+1)%u.results;d(P(y({},u),{selectedIndex:s1})),c==null||c(E,s1)},[u,c,E]),K=A1.useCallback(G=>{var o1;if((o1=G==null?void 0:G.stopPropagation)==null||o1.call(G),u===void 0)return;let s1=(u.selectedIndex-1)%u.results;s1<0&&(s1+=u.results),d(P(y({},u),{selectedIndex:s1})),c==null||c(E,s1)},[c,E,u]),Q=A1.useCallback(G=>{(G.ctrlKey||G.metaKey)&&G.nativeEvent.code==="KeyF"||G.key==="Escape"?(D(),G.stopPropagation(),G.preventDefault()):G.key==="Enter"&&(G.shiftKey?K():_())},[D,_,K]);A1.useEffect(()=>()=>{S()},[S]);let[m1,g1]=A1.useState(!1);A1.useEffect(()=>{if(h)g1(!0);else{let G=setTimeout(()=>g1(!1),150);return()=>clearTimeout(G)}},[h]);let w1=A1.useMemo(()=>{var J,I1,p1;if(!h&&!m1)return null;let G;u!==void 0&&(G=u.results>=1e3?"over 1000":`${u.results} result${u.results!==1?"s":""}`,u.selectedIndex>=0&&(G=`${u.selectedIndex+1} of ${G}`));let s1=e2=>{e2.stopPropagation()},R1={width:`${Math.floor(((J=u==null?void 0:u.rowsSearched)!=null?J:0)/l*100)}%`};return A1.createElement(Ns,{className:h?"":"out",onMouseDown:s1,onMouseMove:s1,onMouseUp:s1,onClick:s1},A1.createElement("div",{className:"gdg-search-bar-inner"},A1.createElement("input",{id:m,"aria-hidden":!h,"data-testid":"search-input",ref:s,onChange:B,value:v,tabIndex:h?void 0:-1,onKeyDownCapture:Q}),A1.createElement("button",{"aria-label":"Previous Result","aria-hidden":!h,tabIndex:h?void 0:-1,onClick:K,disabled:((I1=u==null?void 0:u.results)!=null?I1:0)===0},IH),A1.createElement("button",{"aria-label":"Next Result","aria-hidden":!h,tabIndex:h?void 0:-1,onClick:_,disabled:((p1=u==null?void 0:u.results)!=null?p1:0)===0},OH),g!==void 0&&A1.createElement("button",{"aria-label":"Close Search","aria-hidden":!h,"data-testid":"search-close-button",tabIndex:h?void 0:-1,onClick:D},_H)),u!==void 0?A1.createElement(A1.Fragment,null,A1.createElement("div",{className:"gdg-search-status"},A1.createElement("div",{"data-testid":"search-result-area"},G)),A1.createElement("div",{className:"gdg-search-progress",style:R1})):A1.createElement("div",{className:"gdg-search-status"},A1.createElement("label",{htmlFor:m},"Type to search")))},[h,m1,u,l,m,s,B,v,Q,K,_,g,D]);return A1.createElement(A1.Fragment,null,A1.createElement(Es,{prelightCells:E,accessibilityHeight:e.accessibilityHeight,canvasRef:e.canvasRef,cellXOffset:e.cellXOffset,cellYOffset:e.cellYOffset,className:e.className,clientSize:e.clientSize,columns:e.columns,disabledRows:e.disabledRows,enableGroups:e.enableGroups,fillHandle:e.fillHandle,firstColAccessible:e.firstColAccessible,nonGrowWidth:e.nonGrowWidth,fixedShadowX:e.fixedShadowX,fixedShadowY:e.fixedShadowY,freezeColumns:e.freezeColumns,getCellContent:e.getCellContent,getCellRenderer:e.getCellRenderer,getGroupDetails:e.getGroupDetails,getRowThemeOverride:e.getRowThemeOverride,groupHeaderHeight:e.groupHeaderHeight,headerHeight:e.headerHeight,highlightRegions:e.highlightRegions,imageWindowLoader:e.imageWindowLoader,initialSize:e.initialSize,isFilling:e.isFilling,isFocused:e.isFocused,lockColumns:e.lockColumns,maxColumnWidth:e.maxColumnWidth,minColumnWidth:e.minColumnWidth,onHeaderMenuClick:e.onHeaderMenuClick,onMouseMove:e.onMouseMove,onVisibleRegionChanged:e.onVisibleRegionChanged,overscrollX:e.overscrollX,overscrollY:e.overscrollY,preventDiagonalScrolling:e.preventDiagonalScrolling,rightElement:e.rightElement,rightElementProps:e.rightElementProps,rowHeight:e.rowHeight,rows:e.rows,scrollRef:e.scrollRef,selection:e.selection,theme:e.theme,freezeTrailingRows:e.freezeTrailingRows,hasAppendRow:e.hasAppendRow,translateX:e.translateX,translateY:e.translateY,verticalBorder:e.verticalBorder,onColumnProposeMove:e.onColumnProposeMove,drawFocusRing:e.drawFocusRing,drawCell:e.drawCell,drawHeader:e.drawHeader,experimental:e.experimental,gridRef:e.gridRef,headerIcons:e.headerIcons,isDraggable:e.isDraggable,onCanvasBlur:e.onCanvasBlur,onCanvasFocused:e.onCanvasFocused,onCellFocused:e.onCellFocused,onColumnMoved:e.onColumnMoved,onColumnResize:e.onColumnResize,onColumnResizeEnd:e.onColumnResizeEnd,onColumnResizeStart:e.onColumnResizeStart,onContextMenu:e.onContextMenu,onDragEnd:e.onDragEnd,onDragLeave:e.onDragLeave,onDragOverCell:e.onDragOverCell,onDragStart:e.onDragStart,onDrop:e.onDrop,onItemHovered:e.onItemHovered,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onRowMoved:e.onRowMoved,smoothScrollX:e.smoothScrollX,smoothScrollY:e.smoothScrollY}),w1)},Rs=qH;var r3=F1(Y1(),1);var $H=()=>e=>Math.max(16,e.targetHeight-10),UH=X2("input")({name:"RenameInput",class:"gdg-r17m35ur",propsAsIs:!1,vars:{"r17m35ur-0":[$H(),"px"]}}),Bs=e=>{let{bounds:t,group:i,onClose:l,canvasBounds:r,onFinish:s}=e,[a,o]=r3.default.useState(i);return r3.default.createElement(Q6,{style:{position:"absolute",left:t.x-r.left+1,top:t.y-r.top,width:t.width-2,height:t.height},className:"gdg-c1tqibwd",onClickOutside:l},r3.default.createElement(UH,{targetHeight:t.height,"data-testid":"group-rename-input",value:a,onBlur:l,onFocus:n=>n.target.setSelectionRange(0,a.length),onChange:n=>o(n.target.value),onKeyDown:n=>{n.key==="Enter"?s(a):n.key==="Escape"&&l()},autoFocus:!0}))};function GH(e,t){return e===void 0?!1:e.length>1&&e.startsWith("_")?Number.parseInt(e.slice(1))===t.keyCode:e.length===1&&e>="a"&&e<="z"?e.toUpperCase().codePointAt(0)===t.keyCode:e===t.key}function o2(e,t,i){let l=zs(e,t);return l&&(i.didMatch=!0),l}function zs(e,t){if(e.length===0)return!1;if(e.includes("|")){let n=e.split("|");for(let C of n)if(zs(C,t))return!0;return!1}let i=!1,l=!1,r=!1,s=!1,a=e.split("+"),o=a.pop();if(!GH(o,t))return!1;if(a[0]==="any")return!0;for(let n of a)switch(n){case"ctrl":i=!0;break;case"shift":l=!0;break;case"alt":r=!0;break;case"meta":s=!0;break;case"primary":V5.value?s=!0:i=!0;break}return t.altKey===r&&t.ctrlKey===i&&t.shiftKey===l&&t.metaKey===s}var s3=F1(Y1(),1);function ys(e,t,i,l,r,s){let a=s3.default.useCallback((C,c,h,g)=>{var u,d;(s==="cell"||s==="multi-cell")&&C!==void 0&&(C=P(y({},C),{range:{x:C.cell[0],y:C.cell[1],width:1,height:1}}));let m=i==="mixed"&&(h||g==="drag"),w=l==="mixed"&&m,L=r==="mixed"&&m,v={current:C===void 0?void 0:P(y({},C),{rangeStack:g==="drag"?(d=(u=e.current)==null?void 0:u.rangeStack)!=null?d:[]:[]}),columns:w?e.columns:x2.empty(),rows:L?e.rows:x2.empty()};h&&(s==="multi-rect"||s==="multi-cell")&&v.current!==void 0&&e.current!==void 0&&(v=P(y({},v),{current:P(y({},v.current),{rangeStack:[...e.current.rangeStack,e.current.range]})})),t(v,c)},[l,e,i,s,r,t]),o=s3.default.useCallback((C,c,h)=>{C=C!=null?C:e.rows,c!==void 0&&(C=C.add(c));let g;if(r==="exclusive"&&C.length>0)g={current:void 0,columns:x2.empty(),rows:C};else{let m=h&&i==="mixed",w=h&&l==="mixed";g={current:m?e.current:void 0,columns:w?e.columns:x2.empty(),rows:C}}t(g,!1)},[l,e,i,r,t]),n=s3.default.useCallback((C,c,h)=>{C=C!=null?C:e.columns,c!==void 0&&(C=C.add(c));let g;if(l==="exclusive"&&C.length>0)g={current:void 0,rows:x2.empty(),columns:C};else{let m=h&&i==="mixed",w=h&&r==="mixed";g={current:m?e.current:void 0,rows:w?e.rows:x2.empty(),columns:C}}t(g,!1)},[l,e,i,r,t]);return[a,o,n]}var $8=F1(Y1(),1);function bs(e,t,i,l,r){let s=$8.useCallback(C=>{var c;if(e===!0){let h=[];for(let g=C.y;g=r?m.push({kind:c1.Loading,allowOverlay:!1}):m.push(t([w,g]));h.push(m)}return h}return(c=e==null?void 0:e(C,l.signal))!=null?c:[]},[l.signal,t,e,r]),a=e!==void 0?s:void 0,o=$8.useCallback(C=>{if(a===void 0)return[];let c=P(y({},C),{x:C.x-i});if(c.x<0){c.x=0,c.width--;let h=a(c,l.signal);return typeof h=="function"?async()=>(await h()).map(g=>[{kind:c1.Loading,allowOverlay:!1},...g]):h.map(g=>[{kind:c1.Loading,allowOverlay:!1},...g])}return a(c,l.signal)},[l.signal,a,i]);return[e!==void 0?o:void 0,a]}function KH(e){var t,i;if(e.copyData!==void 0)return{formatted:e.copyData,rawValue:e.copyData,format:"string"};switch(e.kind){case c1.Boolean:return{formatted:e.data===!0?"TRUE":e.data===!1?"FALSE":e.data===_5?"INDETERMINATE":"",rawValue:e.data,format:"boolean"};case c1.Custom:return{formatted:e.copyData,rawValue:e.copyData,format:"string"};case c1.Image:case c1.Bubble:return{formatted:e.data,rawValue:e.data,format:"string-array"};case c1.Drilldown:return{formatted:e.data.map(l=>l.text),rawValue:e.data.map(l=>l.text),format:"string-array"};case c1.Text:return{formatted:(t=e.displayData)!=null?t:e.data,rawValue:e.data,format:"string"};case c1.Uri:return{formatted:(i=e.displayData)!=null?i:e.data,rawValue:e.data,format:"url"};case c1.Markdown:case c1.RowID:return{formatted:e.data,rawValue:e.data,format:"string"};case c1.Number:return{formatted:e.displayData,rawValue:e.data,format:"number"};case c1.Loading:return{formatted:"#LOADING",rawValue:"",format:"string"};case c1.Protected:return{formatted:"************",rawValue:"",format:"string"};default:l5(e)}}function XH(e,t){return e.map((l,r)=>{let s=t[r];return l.map(a=>a.span!==void 0&&a.span[0]!==s?{formatted:"",rawValue:"",format:"string"}:KH(a))})}function Fs(e,t){return(t?/[\t\n",]/:/[\t\n"]/).test(e)&&(e=`"${e.replace(/"/g,'""')}"`),e}function jH(e){var i,l;let t=[];for(let r of e){let s=[];for(let a of r)a.format==="url"?s.push((l=(i=a.rawValue)==null?void 0:i.toString())!=null?l:""):a.format==="string-array"?s.push(a.formatted.map(o=>Fs(o,!0)).join(",")):s.push(Fs(a.formatted,!1));t.push(s.join(" "))}return t.join(` +`)}function U8(e){return e.replace(/\t/g," ").replace(/ {2,}/g,t=>" ".repeat(t.length))}function Ss(e){return'"'+e.replace(/&/g,"&").replace(/"/g,""").replace(//g,">")+'"'}function YH(e){return e.replace(/"/g,'"').replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")}function QH(e){var i,l;let t=[];t.push('',"");for(let r of e){t.push("");for(let s of r){let a=`gdg-format="${s.format}"`;s.format==="url"?t.push(``):s.format==="string-array"?t.push(``):t.push(``)}t.push("")}return t.push("
    ${U8(s.formatted)}
      ${s.formatted.map((o,n)=>`
    1. `+U8(o)+"
    2. ").join("")}
    ${U8(s.formatted)}
    "),t.join("")}function ks(e,t){let i=XH(e,t),l=jH(i),r=QH(i);return{textPlain:l,textHtml:r}}function G8(e){var a,o,n,C,c,h;let t=document.createElement("html");t.innerHTML=e.replace(/ /g," ");let i=t.querySelector("table");if(i===null)return;let l=[i],r=[],s;for(;l.length>0;){let g=l.pop();if(g===void 0)break;if(g instanceof HTMLTableElement||g.nodeName==="TBODY")l.push(...[...g.children].reverse());else if(g instanceof HTMLTableRowElement)s!==void 0&&r.push(s),s=[],l.push(...[...g.children].reverse());else if(g instanceof HTMLTableCellElement){let m=g.cloneNode(!0),L=m.children.length===1&&m.children[0].nodeName==="P"?m.children[0]:null,v=(L==null?void 0:L.children.length)===1&&L.children[0].nodeName==="FONT",V=m.querySelectorAll("br");for(let p of V)p.replaceWith(` +`);let u=m.getAttribute("gdg-raw-value"),d=(a=m.getAttribute("gdg-format"))!=null?a:"string";if(m.querySelector("a")!==null)s==null||s.push({rawValue:(n=(o=m.querySelector("a"))==null?void 0:o.getAttribute("href"))!=null?n:"",formatted:(C=m.textContent)!=null?C:"",format:d});else if(m.querySelector("ol")!==null){let p=m.querySelectorAll("li");s==null||s.push({rawValue:[...p].map(Z=>{var R;return(R=Z.getAttribute("gdg-raw-value"))!=null?R:""}),formatted:[...p].map(Z=>{var R;return(R=Z.textContent)!=null?R:""}),format:"string-array"})}else if(u!==null)s==null||s.push({rawValue:YH(u),formatted:(c=m.textContent)!=null?c:"",format:d});else{let p=(h=m.textContent)!=null?h:"";v&&(p=p.replace(/\n(?!\n)/g,"")),s==null||s.push({rawValue:p!=null?p:"",formatted:p!=null?p:"",format:d})}}}return s!==void 0&&r.push(s),r}function Ps(e,t,i,l,r){var o,n;let s=e;if(l==="allowPartial"||e.current===void 0||t===void 0)return e;let a=!1;do{if((e==null?void 0:e.current)===void 0)break;let C=(o=e.current)==null?void 0:o.range,c=[];if(C.width>2){let m=t({x:C.x,y:C.y,width:1,height:C.height},r.signal);if(typeof m=="function")return s;c.push(...m);let w=t({x:C.x+C.width-1,y:C.y,width:1,height:C.height},r.signal);if(typeof w=="function")return s;c.push(...w)}else{let m=t({x:C.x,y:C.y,width:C.width,height:C.height},r.signal);if(typeof m=="function")return s;c.push(...m)}let h=C.x-i,g=C.x+C.width-1-i;for(let m of c)for(let w of m)w.span!==void 0&&(h=Math.min(w.span[0],h),g=Math.max(w.span[1],g));h===C.x-i&&g===C.x+C.width-1-i?a=!0:e={current:{cell:(n=e.current.cell)!=null?n:[0,0],range:{x:h+i,y:C.y,width:g-h+1,height:C.height},rangeStack:e.current.rangeStack},columns:e.columns,rows:e.rows}}while(!a);return e}function Ts(e){return e.startsWith('"')&&e.endsWith('"')&&(e=e.slice(1,-1).replace(/""/g,'"')),e}function Ds(e){let t;(function(o){o[o.None=0]="None",o[o.inString=1]="inString",o[o.inStringPostQuote=2]="inStringPostQuote"})(t||(t={}));let i=[],l=[],r=0,s=t.None;e=e.replace(/\r\n/g,` +`);let a=0;for(let o of e){switch(s){case t.None:o===" "||o===` +`?(l.push(e.slice(r,a)),r=a+1,o===` +`&&(i.push(l),l=[])):o==='"'&&(s=t.inString);break;case t.inString:o==='"'&&(s=t.inStringPostQuote);break;case t.inStringPostQuote:o==='"'?s=t.inString:((o===" "||o===` +`)&&(l.push(Ts(e.slice(r,a))),r=a+1,o===` +`&&(i.push(l),l=[])),s=t.None);break}a++}return ro.map(n=>({rawValue:n,formatted:n,format:"string"})))}function K8(e,t,i){var o;let l=ks(e,t),r=n=>{var C;(C=window.navigator.clipboard)==null||C.writeText(n)},s=(n,C)=>{var c;return((c=window.navigator.clipboard)==null?void 0:c.write)===void 0?!1:(window.navigator.clipboard.write([new ClipboardItem({"text/plain":new Blob([n],{type:"text/plain"}),"text/html":new Blob([C],{type:"text/html"})})]),!0)},a=(n,C)=>{var c,h;try{if(i===void 0||i.clipboardData===null)throw new Error("No clipboard data");(c=i==null?void 0:i.clipboardData)==null||c.setData("text/plain",n),(h=i==null?void 0:i.clipboardData)==null||h.setData("text/html",C)}catch(g){s(n,C)||r(n)}};((o=window.navigator.clipboard)==null?void 0:o.write)!==void 0||(i==null?void 0:i.clipboardData)!==void 0?a(l.textPlain,l.textHtml):r(l.textPlain),i==null||i.preventDefault()}function a3(e){return e!==!0}var Is=F1(Y1(),1);function As(e){return typeof e=="string"?e:`${e}px`}var JH=()=>e=>e.innerWidth,eL=()=>e=>e.innerHeight,tL=X2("div")({name:"Wrapper",class:"gdg-wmyidgi",propsAsIs:!1,vars:{"wmyidgi-0":[JH()],"wmyidgi-1":[eL()]}}),Os=e=>{let s=e,{inWidth:t,inHeight:i,children:l}=s,r=o0(s,["inWidth","inHeight","children"]);return Is.createElement(tL,y({innerHeight:As(i),innerWidth:As(t)},r),l)};var X8=F1(Y1(),1),iL=2,lL=1300;function _s(e,t,i){let l=X8.default.useRef(0),[r,s]=e!=null?e:[0,0];X8.default.useEffect(()=>{if(r===0&&s===0){l.current=0;return}let a=!1,o=0,n=C=>{var c;if(!a){if(o===0)o=C;else{let h=C-o;l.current=Math.min(1,l.current+h/lL);let g=l.current**1.618*h*iL;(c=t.current)==null||c.scrollBy(r*g,s*g),o=C,i==null||i()}window.requestAnimationFrame(n)}};return window.requestAnimationFrame(n),()=>{a=!0}},[t,r,s,i])}var Ws=F1(Y1(),1);function qs({rowHeight:e,headerHeight:t,groupHeaderHeight:i,theme:l,overscrollX:r,overscrollY:s,scaleToRem:a,remSize:o}){let[n,C,c,h,g,m]=Ws.default.useMemo(()=>{var V,u,d;if(!a||o===16)return[e,t,i,l,r,s];let w=o/16,L=e,v=C7();return[typeof L=="number"?L*w:p=>Math.ceil(L(p)*w),Math.ceil(t*w),Math.ceil(i*w),P(y({},l),{headerIconSize:((V=l==null?void 0:l.headerIconSize)!=null?V:v.headerIconSize)*w,cellHorizontalPadding:((u=l==null?void 0:l.cellHorizontalPadding)!=null?u:v.cellHorizontalPadding)*w,cellVerticalPadding:((d=l==null?void 0:l.cellVerticalPadding)!=null?d:v.cellVerticalPadding)*w}),Math.ceil((r!=null?r:0)*w),Math.ceil((s!=null?s:0)*w)]},[i,t,r,s,o,e,a,l]);return{rowHeight:n,headerHeight:C,groupHeaderHeight:c,theme:h,overscrollX:g,overscrollY:m}}var Us=F1(Y1(),1);var X4={downFill:!1,rightFill:!1,clear:!0,closeOverlay:!0,acceptOverlayDown:!0,acceptOverlayUp:!0,acceptOverlayLeft:!0,acceptOverlayRight:!0,copy:!0,paste:!0,cut:!0,search:!1,delete:!0,activateCell:!0,scrollToSelectedCell:!0,goToFirstCell:!0,goToFirstColumn:!0,goToFirstRow:!0,goToLastCell:!0,goToLastColumn:!0,goToLastRow:!0,goToNextPage:!0,goToPreviousPage:!0,selectToFirstCell:!0,selectToFirstColumn:!0,selectToFirstRow:!0,selectToLastCell:!0,selectToLastColumn:!0,selectToLastRow:!0,selectAll:!0,selectRow:!0,selectColumn:!0,goUpCell:!0,goRightCell:!0,goDownCell:!0,goLeftCell:!0,goUpCellRetainSelection:!0,goRightCellRetainSelection:!0,goDownCellRetainSelection:!0,goLeftCellRetainSelection:!0,selectGrowUp:!0,selectGrowRight:!0,selectGrowDown:!0,selectGrowLeft:!0};function n2(e,t){return e===!0?t:e===!1?"":e}function $s(e){let t=V5.value;return{activateCell:n2(e.activateCell," |Enter|shift+Enter"),clear:n2(e.clear,"any+Escape"),closeOverlay:n2(e.closeOverlay,"any+Escape"),acceptOverlayDown:n2(e.acceptOverlayDown,"Enter"),acceptOverlayUp:n2(e.acceptOverlayUp,"shift+Enter"),acceptOverlayLeft:n2(e.acceptOverlayLeft,"shift+Tab"),acceptOverlayRight:n2(e.acceptOverlayRight,"Tab"),copy:e.copy,cut:e.cut,delete:n2(e.delete,t?"Backspace|Delete":"Delete"),downFill:n2(e.downFill,"primary+_68"),scrollToSelectedCell:n2(e.scrollToSelectedCell,"primary+Enter"),goDownCell:n2(e.goDownCell,"ArrowDown"),goDownCellRetainSelection:n2(e.goDownCellRetainSelection,"alt+ArrowDown"),goLeftCell:n2(e.goLeftCell,"ArrowLeft|shift+Tab"),goLeftCellRetainSelection:n2(e.goLeftCellRetainSelection,"alt+ArrowLeft"),goRightCell:n2(e.goRightCell,"ArrowRight|Tab"),goRightCellRetainSelection:n2(e.goRightCellRetainSelection,"alt+ArrowRight"),goUpCell:n2(e.goUpCell,"ArrowUp"),goUpCellRetainSelection:n2(e.goUpCellRetainSelection,"alt+ArrowUp"),goToFirstCell:n2(e.goToFirstCell,"primary+Home"),goToFirstColumn:n2(e.goToFirstColumn,"Home|primary+ArrowLeft"),goToFirstRow:n2(e.goToFirstRow,"primary+ArrowUp"),goToLastCell:n2(e.goToLastCell,"primary+End"),goToLastColumn:n2(e.goToLastColumn,"End|primary+ArrowRight"),goToLastRow:n2(e.goToLastRow,"primary+ArrowDown"),goToNextPage:n2(e.goToNextPage,"PageDown"),goToPreviousPage:n2(e.goToPreviousPage,"PageUp"),paste:e.paste,rightFill:n2(e.rightFill,"primary+_82"),search:n2(e.search,"primary+f"),selectAll:n2(e.selectAll,"primary+a"),selectColumn:n2(e.selectColumn,"ctrl+ "),selectGrowDown:n2(e.selectGrowDown,"shift+ArrowDown"),selectGrowLeft:n2(e.selectGrowLeft,"shift+ArrowLeft"),selectGrowRight:n2(e.selectGrowRight,"shift+ArrowRight"),selectGrowUp:n2(e.selectGrowUp,"shift+ArrowUp"),selectRow:n2(e.selectRow,"shift+ "),selectToFirstCell:n2(e.selectToFirstCell,"primary+shift+Home"),selectToFirstColumn:n2(e.selectToFirstColumn,"primary+shift+ArrowLeft"),selectToFirstRow:n2(e.selectToFirstRow,"primary+shift+ArrowUp"),selectToLastCell:n2(e.selectToLastCell,"primary+shift+End"),selectToLastColumn:n2(e.selectToLastColumn,"primary+shift+ArrowRight"),selectToLastRow:n2(e.selectToLastRow,"primary+shift+ArrowDown")}}function Gs(e){let t=_e(e);return Us.default.useMemo(()=>{var l,r,s,a,o,n,C,c,h,g,m,w;if(t===void 0)return $s(X4);let i=P(y({},t),{goToNextPage:(r=(l=t==null?void 0:t.goToNextPage)!=null?l:t==null?void 0:t.pageDown)!=null?r:X4.goToNextPage,goToPreviousPage:(a=(s=t==null?void 0:t.goToPreviousPage)!=null?s:t==null?void 0:t.pageUp)!=null?a:X4.goToPreviousPage,goToFirstCell:(n=(o=t==null?void 0:t.goToFirstCell)!=null?o:t==null?void 0:t.first)!=null?n:X4.goToFirstCell,goToLastCell:(c=(C=t==null?void 0:t.goToLastCell)!=null?C:t==null?void 0:t.last)!=null?c:X4.goToLastCell,selectToFirstCell:(g=(h=t==null?void 0:t.selectToFirstCell)!=null?h:t==null?void 0:t.first)!=null?g:X4.selectToFirstCell,selectToLastCell:(w=(m=t==null?void 0:t.selectToLastCell)!=null?m:t==null?void 0:t.last)!=null?w:X4.selectToLastCell});return $s(y(y({},X4),i))},[t])}var rL=O.lazy(async()=>await import("./data-grid-overlay-editor-LA45TJRM.js")),sL=0;function aL(e){return(0,Ks.default)((0,Y8.default)((0,Y8.default)(e).filter(t=>t.span!==void 0).map(t=>{var i,l,r,s;return(0,p5.default)(((l=(i=t.span)==null?void 0:i[0])!=null?l:0)+1,((s=(r=t.span)==null?void 0:r[1])!=null?s:0)+1)})))}function o3(e,t){return e===void 0||t===0||e.columns.length===0&&e.current===void 0?e:{current:e.current===void 0?void 0:{cell:[e.current.cell[0]+t,e.current.cell[1]],range:P(y({},e.current.range),{x:e.current.range.x+t}),rangeStack:e.current.rangeStack.map(i=>P(y({},i),{x:i.x+t}))},rows:e.rows,columns:e.columns.offset(t)}}var j8={kind:c1.Loading,allowOverlay:!1},n3={columns:x2.empty(),rows:x2.empty(),current:void 0},oL=(e,t)=>{var f6,Z6,E6,N6,R6,B6,z6,y6,b6,F6,S6,k6,T6;let[i,l]=O.useState(n3),[r,s]=O.useState(),a=O.useRef(null),o=O.useRef(null),[n,C]=O.useState(),c=O.useRef(null),h=O.useRef(),g=typeof window=="undefined"?null:window,{imageEditorOverride:m,getRowThemeOverride:w,markdownDivCreateNode:L,width:v,height:V,columns:u,rows:d,getCellContent:p,onCellClicked:Z,onCellActivated:R,onFillPattern:x,onFinishedEditing:N,coercePasteValue:E,drawHeader:S,drawCell:k,editorBloom:b,onHeaderClicked:D,onColumnProposeMove:B,spanRangeBehavior:_="default",onGroupHeaderClicked:K,onCellContextMenu:Q,className:m1,onHeaderContextMenu:g1,getCellsForSelection:w1,onGroupHeaderContextMenu:G,onGroupHeaderRenamed:s1,onCellEdited:o1,onCellsEdited:R1,onSearchResultsChanged:J,searchResults:I1,onSearchValueChange:p1,searchValue:e2,onKeyDown:H1,onKeyUp:W1,keybindings:E2,editOnType:Z2=!0,onRowAppended:u2,onColumnMoved:y1,validateCell:t2,highlightRegions:w2,rangeSelect:i2="rect",columnSelect:a1="multi",rowSelect:T1="multi",rangeSelectionBlending:l2="exclusive",columnSelectionBlending:q1="exclusive",rowSelectionBlending:S1="exclusive",onDelete:$1,onDragStart:U1,onMouseMove:H2,onPaste:t1,copyHeaders:V1=!1,freezeColumns:f1=0,cellActivationBehavior:b1="second-click",rowSelectionMode:z2="auto",onHeaderMenuClick:n1,getGroupDetails:L1,onSearchClose:l1,onItemHovered:M1,onSelectionCleared:Z1,showSearch:R2,onVisibleRegionChanged:Q2,gridSelection:e0,onGridSelectionChange:t0,minColumnWidth:c0=50,maxColumnWidth:Y2=500,maxColumnAutoWidth:J2,provideEditor:k0,trailingRowOptions:C2,freezeTrailingRows:m2=0,allowedFillDirections:L2="orthogonal",scrollOffsetX:A2,scrollOffsetY:y2,verticalBorder:F2,onDragOverCell:Z0,onDrop:o4,onColumnResize:T0,onColumnResizeEnd:m0,onColumnResizeStart:B1,customRenderers:S2,fillHandle:X1,drawFocusRing:N2=!0,experimental:j1,fixedShadowX:Q0,fixedShadowY:v4,headerIcons:P0,imageWindowLoader:q0,initialSize:z4,isDraggable:K9,onDragLeave:X9,onRowMoved:p4,overscrollX:f5,overscrollY:Z5,preventDiagonalScrolling:E5,rightElement:j4,rightElementProps:T4,trapFocus:j9=!1,smoothScrollX:Y9,smoothScrollY:w3,scaleToRem:g3=!1,rowHeight:N5=34,headerHeight:y4=36,groupHeaderHeight:H3=y4,theme:L3,isOutsideClick:Q9,renderers:R5}=e,s0=typeof e.rowMarkers=="string"?void 0:e.rowMarkers,$0=(Z6=(f6=s0==null?void 0:s0.kind)!=null?f6:e.rowMarkers)!=null?Z6:"none",B5=(E6=s0==null?void 0:s0.width)!=null?E6:e.rowMarkerWidth,z5=(R6=(N6=s0==null?void 0:s0.startIndex)!=null?N6:e.rowMarkerStartIndex)!=null?R6:1,o9=(B6=s0==null?void 0:s0.theme)!=null?B6:e.rowMarkerTheme,P4=(z6=s0==null?void 0:s0.checkboxStyle)!=null?z6:"square",U0=Math.max(c0,20),n4=Math.max(Y2,U0),n9=Math.max(J2!=null?J2:n4,U0),D4=O.useMemo(()=>typeof window=="undefined"?{fontSize:"16px"}:window.getComputedStyle(document.documentElement),[]),C9=O.useMemo(()=>Number.parseFloat(D4.fontSize),[D4]),{rowHeight:B0,headerHeight:y5,groupHeaderHeight:c9,theme:J9,overscrollX:V3,overscrollY:e7}=qs({groupHeaderHeight:H3,headerHeight:y4,overscrollX:f5,overscrollY:Z5,remSize:C9,rowHeight:N5,scaleToRem:g3,theme:L3}),C4=Gs(E2),b4=B5!=null?B5:d>1e4?48:d>1e3?44:d>100?36:32,G0=$0!=="none",A=G0?1:0,W2=u2!==void 0,Y4=(C2==null?void 0:C2.sticky)===!0,[d3,t7]=O.useState(!1),m9=R2!=null?R2:d3,u3=O.useCallback(()=>{l1!==void 0?l1():t7(!1)},[l1]),h9=O.useMemo(()=>e0===void 0?void 0:o3(e0,A),[e0,A]),W=h9!=null?h9:i,E0=O.useRef();E0.current===void 0&&(E0.current=new AbortController),O.useEffect(()=>()=>E0==null?void 0:E0.current.abort(),[]);let[a0,b5]=bs(w1,p,A,E0.current,d),w9=O.useCallback((H,f,M)=>{if(t2===void 0)return!0;let F=[H[0]-A,H[1]];return t2==null?void 0:t2(F,f,M)},[A,t2]),A4=O.useRef(e0),D0=O.useCallback((H,f)=>{f&&(H=Ps(H,a0,A,_,E0.current)),t0!==void 0?(A4.current=o3(H,-A),t0(A4.current)):l(H)},[t0,a0,A,_]),c4=m5(T0,O.useCallback((H,f,M,F)=>{T0==null||T0(u[M-A],f,M-A,F)},[T0,A,u])),v3=m5(m0,O.useCallback((H,f,M,F)=>{m0==null||m0(u[M-A],f,M-A,F)},[m0,A,u])),F5=m5(B1,O.useCallback((H,f,M,F)=>{B1==null||B1(u[M-A],f,M-A,F)},[B1,A,u])),p3=m5(S,O.useCallback((H,f)=>{var M;return(M=S==null?void 0:S(P(y({},H),{columnIndex:H.columnIndex-A}),f))!=null?M:!1},[S,A])),M3=m5(k,O.useCallback((H,f)=>{var M;return(M=k==null?void 0:k(P(y({},H),{col:H.col-A}),f))!=null?M:!1},[k,A])),m4=O.useCallback(H=>{if($1!==void 0){let f=$1(o3(H,-A));return typeof f=="boolean"?f:o3(f,A)}return!0},[$1,A]),[g0,H0,i0]=ys(W,D0,l2,q1,S1,i2),h0=O.useMemo(()=>r4(C7(),J9),[J9]),[S5,i7]=O.useState([0,0,0]),g9=O.useMemo(()=>{if(R5===void 0)return{};let H={};for(let f of R5)H[f.kind]=f;return H},[R5]),L0=O.useCallback(H=>H.kind!==c1.Custom?g9[H.kind]:S2==null?void 0:S2.find(f=>f.isMatch(H)),[S2,g9]),{sizedColumns:N0,nonGrowWidth:z}=ft(u,d,b5,S5[0]-(A===0?0:b4)-S5[2],U0,n9,h0,L0,E0.current);$0!=="none"&&(z+=b4);let j=O.useMemo(()=>N0.some(H=>H.group!==void 0),[N0]),x1=j?y5+c9:y5,v1=W.rows.length,C1=$0==="none"?void 0:v1===0?!1:v1===d?!0:void 0,Y=O.useMemo(()=>$0==="none"?N0:[{title:"",width:b4,icon:void 0,hasMenu:!1,style:"normal",themeOverride:o9,rowMarker:P4,rowMarkerChecked:C1},...N0],[$0,N0,b4,o9,P4,C1]),[_1,K1]=O.useMemo(()=>[y2!==void 0&&typeof B0=="number"?Math.floor(y2/B0):0,y2!==void 0&&typeof B0=="number"?-(y2%B0):0],[y2,B0]),h1=O.useRef({height:1,width:1,x:0,y:0}),q2=O.useMemo(()=>{var H,f;return{x:h1.current.x,y:_1,width:(H=h1.current.width)!=null?H:1,height:(f=h1.current.height)!=null?f:1,ty:K1}},[K1,_1]),r2=O.useRef(!1),[G1,d2,Q1]=Oe(q2);h1.current=G1;let k2=((y6=G1.height)!=null?y6:1)>1;O.useLayoutEffect(()=>{if(y2!==void 0&&c.current!==null&&k2){if(c.current.scrollTop===y2)return;c.current.scrollTop=y2,c.current.scrollTop!==y2&&Q1(),r2.current=!0}},[y2,k2,Q1]);let l0=((b6=G1.width)!=null?b6:1)>1;O.useLayoutEffect(()=>{if(A2!==void 0&&c.current!==null&&l0){if(c.current.scrollLeft===A2)return;c.current.scrollLeft=A2,c.current.scrollLeft!==A2&&Q1(),r2.current=!0}},[A2,l0,Q1]);let K0=G1.x+A,$2=G1.y,U2=O.useRef(null),I2=O.useCallback(H=>{var f;H===!0?(f=U2.current)==null||f.focus():window.requestAnimationFrame(()=>{var M;(M=U2.current)==null||M.focus()})},[]),O2=W2?d+1:d,V0=O.useCallback(H=>{let f=A===0?H:H.map(F=>P(y({},F),{location:[F.location[0]-A,F.location[1]]})),M=R1==null?void 0:R1(f);if(M!==!0)for(let F of f)o1==null||o1(F.location,F.value);return M},[o1,R1,A]),[v2,J0]=O.useState(),M0=W.current!==void 0&&W.current.range.width*W.current.range.height>1?W.current.range:void 0,e4=N2?(F6=W.current)==null?void 0:F6.cell:void 0,X0=e4==null?void 0:e4[0],I4=e4==null?void 0:e4[1],Q4=O.useMemo(()=>{var f,M;if((w2===void 0||w2.length===0)&&((M=(f=M0!=null?M0:X0)!=null?f:I4)!=null?M:v2)===void 0)return;let H=[];if(w2!==void 0)for(let F of w2){let T=Y.length-F.range.x-A;T>0&&H.push({color:F.color,range:P(y({},F.range),{x:F.range.x+A,width:Math.min(T,F.range.width)}),style:F.style})}return v2!==void 0&&H.push({color:z0(h0.accentColor,0),range:v2,style:"dashed"}),M0!==void 0&&H.push({color:z0(h0.accentColor,.5),range:M0,style:"solid-outline"}),X0!==void 0&&I4!==void 0&&H.push({color:h0.accentColor,range:{x:X0,y:I4,width:1,height:1},style:"solid-outline"}),H.length>0?H:void 0},[v2,M0,X0,I4,w2,Y.length,h0.accentColor,A]),m6=O.useRef(Y);m6.current=Y;let j0=O.useCallback(([H,f],M=!1)=>{var q,I,$,X,r1,d1,z1,P1,E1,k1;let F=W2&&f===O2-1;if(H===0&&G0)return F?j8:{kind:l4.Marker,allowOverlay:!1,checkboxStyle:P4,checked:(W==null?void 0:W.rows.hasIndex(f))===!0,markerKind:$0==="clickable-number"?"number":$0,row:z5+f,drawHandle:p4!==void 0,cursor:$0==="clickable-number"?"pointer":void 0};if(F){let p2=H===A&&(q=C2==null?void 0:C2.hint)!=null?q:"",N1=m6.current[H];if(((I=N1==null?void 0:N1.trailingRowOptions)==null?void 0:I.disabled)===!0)return j8;{let a2=(X=($=N1==null?void 0:N1.trailingRowOptions)==null?void 0:$.hint)!=null?X:p2,M2=(d1=(r1=N1==null?void 0:N1.trailingRowOptions)==null?void 0:r1.addIcon)!=null?d1:C2==null?void 0:C2.addIcon;return{kind:l4.NewRow,hint:a2,allowOverlay:!1,icon:M2}}}else{let s2=H-A;if(M||(j1==null?void 0:j1.strict)===!0){let N1=h1.current,a2=N1.x>s2||s2>N1.x+N1.width||N1.y>f||f>N1.y+N1.height||f>=f3.current,M2=s2===((P1=(z1=N1.extras)==null?void 0:z1.selected)==null?void 0:P1[0])&&f===((E1=N1.extras)==null?void 0:E1.selected[1]),T2=!1;if(((k1=N1.extras)==null?void 0:k1.freezeRegions)!==void 0){for(let G2 of N1.extras.freezeRegions)if(G4(G2,s2,f)){T2=!0;break}}if(a2&&!M2&&!T2)return j8}let p2=p([s2,f]);return A!==0&&p2.span!==void 0&&(p2=P(y({},p2),{span:[p2.span[0]+A,p2.span[1]+A]})),p2}},[W2,O2,G0,P4,W==null?void 0:W.rows,$0,z5,p4,A,C2==null?void 0:C2.hint,C2==null?void 0:C2.addIcon,j1==null?void 0:j1.strict,p]),x3=O.useCallback(H=>{var M,F;let f=(M=L1==null?void 0:L1(H))!=null?M:{name:H};return s1!==void 0&&H!==""&&(f={icon:f.icon,name:f.name,overrideTheme:f.overrideTheme,actions:[...(F=f.actions)!=null?F:[],{title:"Rename",icon:"renameIcon",onClick:T=>E3({group:f.name,bounds:T.bounds})}]}),f},[L1,s1]),l7=O.useCallback(H=>{var $;let[f,M]=H.cell,F=Y[f],T=(F==null?void 0:F.group)!==void 0?($=x3(F.group))==null?void 0:$.overrideTheme:void 0,q=F==null?void 0:F.themeOverride,I=w==null?void 0:w(M);s(P(y({},H),{theme:r4(h0,T,q,I,H.content.themeOverride)}))},[w,Y,x3,h0]),k5=O.useCallback((H,f,M)=>{var I;if(W.current===void 0)return;let[F,T]=W.current.cell,q=j0([F,T]);if(q.kind!==c1.Boolean&&q.allowOverlay){let $=q;if(M!==void 0)switch($.kind){case c1.Number:{let X=D6(()=>M==="-"?-0:Number.parseFloat(M),0);$=P(y({},$),{data:Number.isNaN(X)?0:X});break}case c1.Text:case c1.Markdown:case c1.Uri:$=P(y({},$),{data:M});break}l7({target:H,content:$,initialValue:M,cell:[F,T],highlight:M===void 0,forceEditMode:M!==void 0})}else q.kind===c1.Boolean&&f&&q.readonly!==!0&&(V0([{location:W.current.cell,value:P(y({},q),{data:a3(q.data)})}]),(I=U2.current)==null||I.damage([{cell:W.current.cell}]))},[j0,W,V0,l7]),h6=O.useCallback((H,f)=>{var T;let M=(T=U2.current)==null?void 0:T.getBounds(H,f);if(M===void 0||c.current===null)return;let F=j0([H,f]);F.allowOverlay&&l7({target:M,content:F,initialValue:void 0,highlight:!0,cell:[H,f],forceEditMode:!0})},[j0,l7]),r0=O.useCallback((H,f,M="both",F=0,T=0,q=void 0)=>{var I;if(c.current!==null){let $=U2.current,X=o.current,r1=typeof H!="number"?H.unit==="cell"?H.amount:void 0:H,d1=typeof f!="number"?f.unit==="cell"?f.amount:void 0:f,z1=typeof H!="number"&&H.unit==="px"?H.amount:void 0,P1=typeof f!="number"&&f.unit==="px"?f.amount:void 0;if($!==null&&X!==null){let E1={x:0,y:0,width:0,height:0},k1=0,s2=0;if((r1!==void 0||d1!==void 0)&&(E1=(I=$.getBounds((r1!=null?r1:0)+A,d1!=null?d1:0))!=null?I:E1,E1.width===0||E1.height===0))return;let p2=X.getBoundingClientRect(),N1=p2.width/X.offsetWidth;if(z1!==void 0&&(E1=P(y({},E1),{x:z1-p2.left-c.current.scrollLeft,width:1})),P1!==void 0&&(E1=P(y({},E1),{y:P1+p2.top-c.current.scrollTop,height:1})),E1!==void 0){let a2={x:E1.x-F,y:E1.y-T,width:E1.width+2*F,height:E1.height+2*T},M2=0;for(let b3=0;b30&&(T2=a4(O2,G2,B0));let f2=M2*N1+p2.left+A*b4*N1,K2=p2.right,w4=p2.top+x1*N1,M4=p2.bottom-T2*N1,t5=E1.width+F*2;switch(q==null?void 0:q.hAlign){case"start":K2=f2+t5;break;case"end":f2=K2-t5;break;case"center":f2=Math.floor((f2+K2)/2)-t5/2,K2=f2+t5;break}let i5=E1.height+T*2;switch(q==null?void 0:q.vAlign){case"start":M4=w4+i5;break;case"end":w4=M4-i5;break;case"center":w4=Math.floor((w4+M4)/2)-i5/2,M4=w4+i5;break}f2>a2.x?k1=a2.x-f2:K2a2.y?s2=a2.y-w4:M4=O2-G2)&&(s2=0),(k1!==0||s2!==0)&&(N1!==1&&(k1/=N1,s2/=N1),c.current.scrollTo(k1+c.current.scrollLeft,s2+c.current.scrollTop))}}}},[A,m2,b4,x1,f1,N0,O2,Y4,B0]),w6=O.useRef(h6),g6=O.useRef(p),f3=O.useRef(d);w6.current=h6,g6.current=p,f3.current=d;let T5=O.useCallback(async(H,f=!0)=>{var X;let M=Y[H];if(((X=M==null?void 0:M.trailingRowOptions)==null?void 0:X.disabled)===!0)return;let F=u2==null?void 0:u2(),T,q=!0;F!==void 0&&(T=await F,T==="top"&&(q=!1),typeof T=="number"&&(q=!1));let I=0,$=()=>{if(f3.current<=d){I<500&&window.setTimeout($,I),I=50+I*2;return}let r1=typeof T=="number"?T:q?d:0;n7.current(H-A,r1),g0({cell:[H,r1],range:{x:H,y:r1,width:1,height:1}},!1,!1,"edit");let d1=g6.current([H-A,r1]);d1.allowOverlay&&o5(d1)&&d1.readonly!==!0&&f&&window.setTimeout(()=>{w6.current(H,r1)},0)};$()},[Y,u2,A,d,g0]),r7=O.useCallback(H=>{var M,F,T;let f=(T=(F=(M=N0[H])==null?void 0:M.trailingRowOptions)==null?void 0:F.targetColumn)!=null?T:C2==null?void 0:C2.targetColumn;if(typeof f=="number")return f+(G0?1:0);if(typeof f=="object"){let q=u.indexOf(f);if(q>=0)return q+(G0?1:0)}},[N0,u,G0,C2==null?void 0:C2.targetColumn]),O4=O.useRef(),P5=O.useRef(),H9=O.useCallback((H,f)=>{var T;let[M,F]=f;return r4(h0,(T=Y[M])==null?void 0:T.themeOverride,w==null?void 0:w(F),H.themeOverride)},[w,Y,h0]),L9=O.useCallback(H=>{var d1,z1,P1,E1;let f=V5.value?H.metaKey:H.ctrlKey,M=f&&T1==="multi",F=f&&a1==="multi",[T,q]=H.location,I=W.columns,$=W.rows,[X,r1]=(z1=(d1=W.current)==null?void 0:d1.cell)!=null?z1:[];if(H.kind==="cell"){if(P5.current=void 0,J4.current=[T,q],T===0&&G0){if(W2===!0&&q===d||$0==="number"||T1==="none")return;let k1=j0(H.location);if(k1.kind!==l4.Marker)return;if(p4!==void 0){let N1=L0(k1);d0((N1==null?void 0:N1.kind)===l4.Marker);let a2=(P1=N1==null?void 0:N1.onClick)==null?void 0:P1.call(N1,P(y({},H),{cell:k1,posX:H.localEventX,posY:H.localEventY,bounds:H.bounds,theme:H9(k1,H.location),preventDefault:()=>{}}));if(a2===void 0||a2.checked===k1.checked)return}s(void 0),I2();let s2=$.hasIndex(q),p2=O4.current;if(T1==="multi"&&(H.shiftKey||H.isLongTouch===!0)&&p2!==void 0&&$.hasIndex(p2)){let N1=[Math.min(p2,q),Math.max(p2,q)+1];M||z2==="multi"?H0(void 0,N1,!0):H0(x2.fromSingleSelection(N1),void 0,M)}else M||H.isTouch||z2==="multi"?s2?H0($.remove(q),void 0,!0):(H0(void 0,q,!0),O4.current=q):s2&&$.length===1?H0(x2.empty(),void 0,f):(H0(x2.fromSingleSelection(q),void 0,f),O4.current=q)}else if(T>=A&&W2&&q===d){let k1=r7(T);T5(k1!=null?k1:T)}else if(X!==T||r1!==q){let k1=j0(H.location),s2=L0(k1);if((s2==null?void 0:s2.onSelect)!==void 0){let a2=!1;if(s2.onSelect(P(y({},H),{cell:k1,posX:H.localEventX,posY:H.localEventY,bounds:H.bounds,preventDefault:()=>a2=!0,theme:H9(k1,H.location)})),a2)return}let p2=Y4&&q===d,N1=Y4&&W!==void 0&&((E1=W.current)==null?void 0:E1.cell[1])===d;if((H.shiftKey||H.isLongTouch===!0)&&X!==void 0&&r1!==void 0&&W.current!==void 0&&!N1){if(p2)return;let a2=Math.min(T,X),M2=Math.max(T,X),T2=Math.min(q,r1),G2=Math.max(q,r1);g0(P(y({},W.current),{range:{x:a2,y:T2,width:M2-a2+1,height:G2-T2+1}}),!0,f,"click"),O4.current=void 0,I2()}else g0({cell:[T,q],range:{x:T,y:q,width:1,height:1}},!0,f,"click"),O4.current=void 0,s(void 0),I2()}}else if(H.kind==="header")if(J4.current=[T,q],s(void 0),G0&&T===0)O4.current=void 0,P5.current=void 0,T1==="multi"&&($.length!==d?H0(x2.fromSingleSelection([0,d]),void 0,f):H0(x2.empty(),void 0,f),I2());else{let k1=P5.current;if(a1==="multi"&&(H.shiftKey||H.isLongTouch===!0)&&k1!==void 0&&I.hasIndex(k1)){let s2=[Math.min(k1,T),Math.max(k1,T)+1];F?i0(void 0,s2,f):i0(x2.fromSingleSelection(s2),void 0,f)}else F?(I.hasIndex(T)?i0(I.remove(T),void 0,f):i0(void 0,T,f),P5.current=T):a1!=="none"&&(i0(x2.fromSingleSelection(T),void 0,f),P5.current=T);O4.current=void 0,I2()}else H.kind===S0?J4.current=[T,q]:H.kind===l9&&!H.isMaybeScrollbar&&(D0(n3,!1),s(void 0),I2(),Z1==null||Z1(),O4.current=void 0,P5.current=void 0)},[T5,a1,I2,L0,r7,j0,W,G0,Y4,Z1,p4,A,$0,T1,z2,d,g0,D0,i0,H0,W2,H9]),V9=O.useRef(!1),J4=O.useRef(),H6=O.useRef(G1),t4=O.useRef(),ao=O.useCallback(H=>{if(D5.current=!1,H6.current=h1.current,H.button!==0&&H.button!==1){t4.current=void 0;return}let f=performance.now();t4.current={button:H.button,time:f,location:H.location},(H==null?void 0:H.kind)==="header"&&(V9.current=!0);let M=H.kind==="cell"&&H.isFillHandle;!M&&H.kind!=="cell"&&H.isEdge||(C({previousSelection:W,fillHandle:M}),J4.current=void 0,!H.isTouch&&H.button===0&&!M?L9(H):!H.isTouch&&H.button===1&&(J4.current=H.location))},[W,L9]),[Z3,E3]=O.useState(),L6=O.useCallback(H=>{if(H.kind!==S0||a1!=="multi")return;let f=V5.value?H.metaKey:H.ctrlKey,[M]=H.location,F=W.columns;if(M=A&&w5(T.group,Y[$].group);$--)q--;for(let $=M+1;${if(a0!==void 0&&c4!==void 0){let f=h1.current.y,M=h1.current.height,F=a0({x:H,y:f,width:1,height:Math.min(M,d-f)},E0.current.signal);typeof F!="object"&&(F=await F());let T=N0[H-A],I=document.createElement("canvas").getContext("2d",{alpha:!1});if(I!==null){I.font=h0.baseFontFull;let $=r8(I,h0,T,0,F,U0,n4,!1,L0);c4==null||c4(T,$.width,H,$.width)}}},[N0,a0,n4,h0,U0,c4,A,d,L0]),[oo,N3]=O.useState(),A5=O.useCallback(async(H,f)=>{var $,X;let M=($=H.current)==null?void 0:$.range;if(M===void 0||a0===void 0||f.current===void 0)return;let F=f.current.range;if(x!==void 0){let r1=!1;if(x({fillDestination:P(y({},F),{x:F.x-A}),patternSource:P(y({},M),{x:M.x-A}),preventDefault:()=>r1=!0}),r1)return}let T=a0(M,E0.current.signal);typeof T!="object"&&(T=await T());let q=T,I=[];for(let r1=0;r1({cell:r1.location})))},[a0,V0,x,A]),V6=O.useCallback(()=>{if(W.current===void 0||W.current.range.width<=1)return;let H=P(y({},W),{current:P(y({},W.current),{range:P(y({},W.current.range),{width:1})})});A5(H,W)},[A5,W]),d6=O.useCallback(()=>{if(W.current===void 0||W.current.range.height<=1)return;let H=P(y({},W),{current:P(y({},W.current),{range:P(y({},W.current.range),{height:1})})});A5(H,W)},[A5,W]),no=O.useCallback((H,f)=>{var d1,z1,P1;let M=n;if(C(void 0),J0(void 0),N3(void 0),V9.current=!1,f)return;if((M==null?void 0:M.fillHandle)===!0&&W.current!==void 0&&((d1=M.previousSelection)==null?void 0:d1.current)!==void 0){if(v2===void 0)return;let E1=P(y({},W),{current:P(y({},W.current),{range:w8(M.previousSelection.current.range,v2)})});A5(M.previousSelection,E1),D0(E1,!0);return}let[F,T]=H.location,[q,I]=(z1=J4.current)!=null?z1:[],$=()=>{D5.current=!0},X=E1=>{var s2,p2,N1,a2;let k1=E1.isTouch||q===F&&I===T;if(k1&&(Z==null||Z([F-A,T],P(y({},E1),{preventDefault:$}))),E1.button===1)return!D5.current;if(!D5.current){let M2=j0(H.location),T2=L0(M2);if(T2!==void 0&&T2.onClick!==void 0&&k1){let f2=T2.onClick(P(y({},E1),{cell:M2,posX:E1.localEventX,posY:E1.localEventY,bounds:E1.bounds,theme:H9(M2,H.location),preventDefault:$}));f2!==void 0&&!F4(f2)&&W5(f2)&&(V0([{location:E1.location,value:f2}]),(s2=U2.current)==null||s2.damage([{cell:E1.location}]))}if(D5.current||W.current===void 0)return!1;let G2=!1;switch((p2=M2.activationBehaviorOverride)!=null?p2:b1){case"double-click":case"second-click":{if(((a2=(N1=M==null?void 0:M.previousSelection)==null?void 0:N1.current)==null?void 0:a2.cell)===void 0)break;let[f2,K2]=W.current.cell,[w4,M4]=M.previousSelection.current.cell;G2=F===f2&&F===w4&&T===K2&&T===M4&&(E1.isDoubleClick===!0||b1==="second-click");break}case"single-click":{G2=!0;break}}if(G2)return R==null||R([F-A,T]),k5(E1.bounds,!1),!0}return!1},r1=H.location[0]-A;if(H.isTouch){let E1=h1.current,k1=H6.current;if(E1.x!==k1.x||E1.y!==k1.y)return;if(H.isLongTouch===!0){if(H.kind==="cell"&&g5((P1=W.current)==null?void 0:P1.cell,H.location)){Q==null||Q([r1,H.location[1]],P(y({},H),{preventDefault:$}));return}else if(H.kind==="header"&&W.columns.hasIndex(F)){g1==null||g1(r1,P(y({},H),{preventDefault:$}));return}else if(H.kind===S0){if(r1<0)return;G==null||G(r1,P(y({},H),{preventDefault:$}));return}}H.kind==="cell"?X(H)||L9(H):H.kind===S0?K==null||K(r1,P(y({},H),{preventDefault:$})):(H.kind===B4&&(D==null||D(r1,P(y({},H),{preventDefault:$}))),L9(H));return}if(H.kind==="header"){if(r1<0)return;H.isEdge?H.isDoubleClick===!0&&s7(F):H.button===0&&F===q&&T===I&&(D==null||D(r1,P(y({},H),{preventDefault:$})))}if(H.kind===S0){if(r1<0)return;H.button===0&&F===q&&T===I&&(K==null||K(r1,P(y({},H),{preventDefault:$})),D5.current||L6(H))}H.kind==="cell"&&(H.button===0||H.button===1)&&X(H),J4.current=void 0},[n,W,A,v2,A5,D0,Z,j0,L0,b1,H9,V0,R,k5,Q,g1,G,L9,K,D,s7,L6]),Co=O.useCallback(H=>{let f=P(y({},H),{location:[H.location[0]-A,H.location[1]]});H2==null||H2(f),n!==void 0&&H.buttons===0&&(C(void 0),J0(void 0),N3(void 0),V9.current=!1),N3(M=>{var F,T;return V9.current?[H.scrollEdge[0],0]:H.scrollEdge[0]===(M==null?void 0:M[0])&&H.scrollEdge[1]===M[1]?M:n===void 0||((T=(F=t4.current)==null?void 0:F.location[0])!=null?T:0){n1==null||n1(H-A,f)},[n1,A]),i4=(S6=W==null?void 0:W.current)==null?void 0:S6.cell,mo=O.useCallback((H,f,M,F,T,q)=>{r2.current=!1;let I=i4;I!==void 0&&(I=[I[0]-A,I[1]]);let $=f1===0?void 0:{x:0,y:H.y,width:f1,height:H.height},X=[];$!==void 0&&X.push($),m2>0&&(X.push({x:H.x-A,y:d-m2,width:H.width,height:m2}),f1>0&&X.push({x:0,y:d-m2,width:f1,height:m2}));let r1={x:H.x-A,y:H.y,width:H.width,height:W2&&H.y+H.height>=d?H.height-1:H.height,tx:T,ty:q,extras:{selected:I,freezeRegion:$,freezeRegions:X}};h1.current=r1,d2(r1),i7([f,M,F]),Q2==null||Q2(r1,r1.tx,r1.ty,r1.extras)},[i4,A,W2,d,f1,m2,d2,Q2]),ho=m5(y1,O.useCallback((H,f)=>{y1==null||y1(H-A,f-A),a1!=="none"&&i0(x2.fromSingleSelection(f),void 0,!0)},[a1,y1,A,i0])),R3=O.useRef(!1),wo=O.useCallback(H=>{if(H.location[0]===0&&A>0){H.preventDefault();return}U1==null||U1(P(y({},H),{location:[H.location[0]-A,H.location[1]]})),H.defaultPrevented()||(R3.current=!0),C(void 0)},[U1,A]),go=O.useCallback(()=>{R3.current=!1},[]),B3=O.useRef(),z3=O.useCallback(H=>{var f,M,F;if(!l3(H,B3.current)&&(B3.current=H,!(((f=t4==null?void 0:t4.current)==null?void 0:f.button)!==void 0&&t4.current.button>=1))){if(H.buttons!==0&&n!==void 0&&((M=t4.current)==null?void 0:M.location[0])===0&&H.location[0]===0&&A===1&&T1==="multi"&&n.previousSelection&&!n.previousSelection.rows.hasIndex(t4.current.location[1])&&W.rows.hasIndex(t4.current.location[1])){let T=Math.min(t4.current.location[1],H.location[1]),q=Math.max(t4.current.location[1],H.location[1])+1;H0(x2.fromSingleSelection([T,q]),void 0,!1)}if(H.buttons!==0&&n!==void 0&&W.current!==void 0&&!R3.current&&!V9.current&&(i2==="rect"||i2==="multi-rect")){let[T,q]=W.current.cell,[I,$]=H.location;if($<0&&($=h1.current.y),n.fillHandle===!0&&((F=n.previousSelection)==null?void 0:F.current)!==void 0){let X=n.previousSelection.current.range;$=Math.min($,W2?d-1:d);let r1=Zi(X,I,$,L2);J0(r1)}else{if(W2&&q===d)return;if(W2&&$===d)if(H.kind===l9)$--;else return;I=Math.max(I,A);let d1=I-T,z1=$-q,P1={x:d1>=0?T:I,y:z1>=0?q:$,width:Math.abs(d1)+1,height:Math.abs(z1)+1};g0(P(y({},W.current),{range:P1}),!0,!1,"drag")}}M1==null||M1(P(y({},H),{location:[H.location[0]-A,H.location[1]]}))}},[L2,n,A,T1,W,i2,M1,H0,W2,d,g0]),Ho=O.useCallback(()=>{var I,$,X;let H=B3.current;if(H===void 0)return;let[f,M]=H.scrollEdge,[F,T]=H.location,q=h1.current;f===-1?F=(X=($=(I=q.extras)==null?void 0:I.freezeRegion)==null?void 0:$.x)!=null?X:q.x:f===1&&(F=q.x+q.width),M===-1?T=Math.max(0,q.y):M===1&&(T=Math.min(d-1,q.y+q.height)),F=(0,v5.default)(F,0,Y.length-1),T=(0,v5.default)(T,0,d-1),z3(P(y({},H),{location:[F,T]}))},[Y.length,z3,d]);_s(oo,c,Ho);let h4=O.useCallback(H=>{if(W.current===void 0)return;let[f,M]=H,[F,T]=W.current.cell,q=W.current.range,I=q.x,$=q.x+q.width,X=q.y,r1=q.y+q.height;if(M!==0)switch(M){case 2:{r1=d,X=T,r0(0,r1,"vertical");break}case-2:{X=0,r1=T+1,r0(0,X,"vertical");break}case 1:{XT+1?(r1--,r0(0,r1,"vertical")):(X=Math.max(0,X-1),r0(0,X,"vertical"));break}default:l5(M)}if(f!==0)if(f===2)$=Y.length,I=F,r0($-1-A,0,"horizontal");else if(f===-2)I=A,$=F+1,r0(I-A,0,"horizontal");else{let d1=[];if(a0!==void 0){let z1=a0({x:I,y:X,width:$-I-A,height:r1-X},E0.current.signal);typeof z1=="object"&&(d1=aL(z1))}if(f===1){let z1=!1;if(I0){let P1=(0,p5.default)(I+1,F+1).find(E1=>!d1.includes(E1-A));P1!==void 0&&(I=P1,z1=!0)}else I++,z1=!0;z1&&r0(I,0,"horizontal")}z1||($=Math.min(Y.length,$+1),r0($-1-A,0,"horizontal"))}else if(f===-1){let z1=!1;if($>F+1){if(d1.length>0){let P1=(0,p5.default)($-1,F,-1).find(E1=>!d1.includes(E1-A));P1!==void 0&&($=P1,z1=!0)}else $--,z1=!0;z1&&r0($-A,0,"horizontal")}z1||(I=Math.max(A,I-1),r0(I-A,0,"horizontal"))}else l5(f)}g0({cell:W.current.cell,range:{x:I,y:X,width:$-I,height:r1-X}},!0,!1,"keyboard-select")},[a0,W,Y.length,A,d,r0,g0]),_4=O.useCallback((H,f,M,F)=>{let T=O2-(M?0:1);if(H=(0,v5.default)(H,A,N0.length-1+A),f=(0,v5.default)(f,0,T),H===(i4==null?void 0:i4[0])&&f===(i4==null?void 0:i4[1]))return!1;if(F&&W.current!==void 0){let q=[...W.current.rangeStack];(W.current.range.width>1||W.current.range.height>1)&&q.push(W.current.range),D0(P(y({},W),{current:{cell:[H,f],range:{x:H,y:f,width:1,height:1},rangeStack:q}}),!0)}else g0({cell:[H,f],range:{x:H,y:f,width:1,height:1}},!0,!1,"keyboard-nav");return h.current!==void 0&&h.current[0]===H&&h.current[1]===f&&(h.current=void 0),r0(H-A,f),!0},[O2,A,N0.length,i4,W,r0,D0,g0]),Lo=O.useCallback((H,f)=>{(r==null?void 0:r.cell)!==void 0&&H!==void 0&&W5(H)&&(V0([{location:r.cell,value:H}]),window.requestAnimationFrame(()=>{var T;(T=U2.current)==null||T.damage([{cell:r.cell}])})),I2(!0),s(void 0);let[M,F]=f;if(W.current!==void 0&&(M!==0||F!==0)){let T=W.current.cell[1]===O2-1&&H!==void 0;_4((0,v5.default)(W.current.cell[0]+M,0,Y.length-1),(0,v5.default)(W.current.cell[1]+F,0,O2-1),T,!1)}N==null||N(H,f)},[r==null?void 0:r.cell,I2,W,N,V0,O2,_4,Y.length]),Vo=O.useMemo(()=>`gdg-overlay-${sL++}`,[]),e5=O.useCallback(H=>{var M,F,T,q;I2();let f=[];for(let I=H.x;I({cell:I.location})))},[I2,p,L0,V0,A]),d9=r!==void 0,u6=O.useCallback(H=>{var E1,k1,s2,p2;let f=()=>{H.stopPropagation(),H.preventDefault()},M={didMatch:!1},{bounds:F}=H,T=W.columns,q=W.rows,I=C4;if(!d9&&o2(I.clear,H,M))D0(n3,!1),Z1==null||Z1();else if(!d9&&o2(I.selectAll,H,M))D0({columns:x2.empty(),rows:x2.empty(),current:{cell:(k1=(E1=W.current)==null?void 0:E1.cell)!=null?k1:[A,0],range:{x:A,y:0,width:u.length,height:d},rangeStack:[]}},!1);else if(o2(I.search,H,M))(s2=a==null?void 0:a.current)==null||s2.focus({preventScroll:!0}),t7(!0);else if(o2(I.delete,H,M)){let N1=(p2=m4==null?void 0:m4(W))!=null?p2:!0;if(N1!==!1){let a2=N1===!0?W:N1;if(a2.current!==void 0){e5(a2.current.range);for(let M2 of a2.current.rangeStack)e5(M2)}for(let M2 of a2.rows)e5({x:A,y:M2,width:u.length,height:1});for(let M2 of a2.columns)e5({x:M2,y:0,width:1,height:d})}}if(M.didMatch)return f(),!0;if(W.current===void 0)return!1;let[$,X]=W.current.cell,r1=!1,d1=!1;o2(I.scrollToSelectedCell,H,M)?n7.current($-A,X):a1!=="none"&&o2(I.selectColumn,H,M)?T.hasIndex($)?i0(T.remove($),void 0,!0):a1==="single"?i0(x2.fromSingleSelection($),void 0,!0):i0(void 0,$,!0):T1!=="none"&&o2(I.selectRow,H,M)?q.hasIndex(X)?H0(q.remove(X),void 0,!0):T1==="single"?H0(x2.fromSingleSelection(X),void 0,!0):H0(void 0,X,!0):!d9&&F!==void 0&&o2(I.activateCell,H,M)?X===d&&W2?window.setTimeout(()=>{let N1=r7($);T5(N1!=null?N1:$)},0):(R==null||R([$-A,X]),k5(F,!0)):W.current.range.height>1&&o2(I.downFill,H,M)?d6():W.current.range.width>1&&o2(I.rightFill,H,M)?V6():o2(I.goToNextPage,H,M)?X+=Math.max(1,h1.current.height-4):o2(I.goToPreviousPage,H,M)?X-=Math.max(1,h1.current.height-4):o2(I.goToFirstCell,H,M)?(s(void 0),X=0,$=0):o2(I.goToLastCell,H,M)?(s(void 0),X=Number.MAX_SAFE_INTEGER,$=Number.MAX_SAFE_INTEGER):o2(I.selectToFirstCell,H,M)?(s(void 0),h4([-2,-2])):o2(I.selectToLastCell,H,M)?(s(void 0),h4([2,2])):d9?(o2(I.closeOverlay,H,M)&&s(void 0),o2(I.acceptOverlayDown,H,M)&&(s(void 0),X++),o2(I.acceptOverlayUp,H,M)&&(s(void 0),X--),o2(I.acceptOverlayLeft,H,M)&&(s(void 0),$--),o2(I.acceptOverlayRight,H,M)&&(s(void 0),$++)):(o2(I.goDownCell,H,M)?X+=1:o2(I.goUpCell,H,M)?X-=1:o2(I.goRightCell,H,M)?$+=1:o2(I.goLeftCell,H,M)?$-=1:o2(I.goDownCellRetainSelection,H,M)?(X+=1,r1=!0):o2(I.goUpCellRetainSelection,H,M)?(X-=1,r1=!0):o2(I.goRightCellRetainSelection,H,M)?($+=1,r1=!0):o2(I.goLeftCellRetainSelection,H,M)?($-=1,r1=!0):o2(I.goToLastRow,H,M)?X=d-1:o2(I.goToFirstRow,H,M)?X=Number.MIN_SAFE_INTEGER:o2(I.goToLastColumn,H,M)?$=Number.MAX_SAFE_INTEGER:o2(I.goToFirstColumn,H,M)?$=Number.MIN_SAFE_INTEGER:(i2==="rect"||i2==="multi-rect")&&(o2(I.selectGrowDown,H,M)?h4([0,1]):o2(I.selectGrowUp,H,M)?h4([0,-1]):o2(I.selectGrowRight,H,M)?h4([1,0]):o2(I.selectGrowLeft,H,M)?h4([-1,0]):o2(I.selectToLastRow,H,M)?h4([0,2]):o2(I.selectToFirstRow,H,M)?h4([0,-2]):o2(I.selectToLastColumn,H,M)?h4([2,0]):o2(I.selectToFirstColumn,H,M)&&h4([-2,0])),d1=M.didMatch);let z1=_4($,X,!1,r1),P1=M.didMatch;return P1&&(z1||!d1||j9)&&f(),P1},[d9,W,C4,a1,T1,i2,A,d,_4,D0,Z1,u.length,m4,j9,e5,i0,H0,W2,r7,T5,R,k5,d6,V6,h4]),u9=O.useCallback(H=>{let f=!1;if(H1!==void 0&&H1(P(y({},H),{cancel:()=>{f=!0}})),f||u6(H)||W.current===void 0)return;let[M,F]=W.current.cell,T=h1.current;if(Z2&&!H.metaKey&&!H.ctrlKey&&W.current!==void 0&&H.key.length===1&&/[ -~]/g.test(H.key)&&H.bounds!==void 0&&o5(p([M-A,Math.max(0,Math.min(F,d-1))]))){if((!W2||F!==d)&&(T.y>F||F>T.y+T.height||T.x>M||M>T.x+T.width))return;k5(H.bounds,!0,H.key),H.stopPropagation(),H.preventDefault()}},[Z2,H1,u6,W,p,A,d,W2,k5]),uo=O.useCallback((H,f)=>{let M=H.location[0]-A;if(H.kind==="header"&&(g1==null||g1(M,P(y({},H),{preventDefault:f}))),H.kind===S0){if(M<0)return;G==null||G(M,P(y({},H),{preventDefault:f}))}if(H.kind==="cell"){let[F,T]=H.location;Q==null||Q([M,T],P(y({},H),{preventDefault:f})),ht(W,H.location)||_4(F,T,!1,!1)}},[W,Q,G,g1,A,_4]),y3=O.useCallback(async H=>{var I,$,X,r1,d1,z1;if(!C4.paste)return;function f(P1,E1,k1,s2){var N1,a2,M2,T2;let p2=typeof k1=="object"?(N1=k1==null?void 0:k1.join(` +`))!=null?N1:"":(a2=k1==null?void 0:k1.toString())!=null?a2:"";if(!F4(P1)&&o5(P1)&&P1.readonly!==!0){let G2=E==null?void 0:E(p2,P1);if(G2!==void 0&&W5(G2))return{location:E1,value:G2};let f2=L0(P1);if(f2===void 0)return;if(f2.kind===c1.Custom){d0(P1.kind===c1.Custom);let K2=(M2=f2.onPaste)==null?void 0:M2.call(f2,p2,P1.data);return K2===void 0?void 0:{location:E1,value:P(y({},P1),{data:K2})}}else{let K2=(T2=f2.onPaste)==null?void 0:T2.call(f2,p2,P1,{formatted:s2,formattedString:typeof s2=="string"?s2:s2==null?void 0:s2.join(` +`),rawValue:k1});return K2===void 0?void 0:(d0(K2.kind===P1.kind),{location:E1,value:K2})}}}let M=W.columns,F=W.rows,T=((I=c.current)==null?void 0:I.contains(document.activeElement))===!0||(($=o.current)==null?void 0:$.contains(document.activeElement))===!0,q;if(W.current!==void 0?q=[W.current.range.x,W.current.range.y]:M.length===1?q=[(X=M.first())!=null?X:0,0]:F.length===1&&(q=[A,(r1=F.first())!=null?r1:0]),T&&q!==void 0){let P1,E1,k1="text/plain",s2="text/html";if(navigator.clipboard.read!==void 0){let M2=await navigator.clipboard.read();for(let T2 of M2){if(T2.types.includes(s2)){let f2=await(await T2.getType(s2)).text(),K2=G8(f2);if(K2!==void 0){P1=K2;break}}T2.types.includes(k1)&&(E1=await(await T2.getType(k1)).text())}}else if(navigator.clipboard.readText!==void 0)E1=await navigator.clipboard.readText();else if(H!==void 0&&(H==null?void 0:H.clipboardData)!==null){if(H.clipboardData.types.includes(s2)){let M2=H.clipboardData.getData(s2);P1=G8(M2)}P1===void 0&&H.clipboardData.types.includes(k1)&&(E1=H.clipboardData.getData(k1))}else return;let[p2,N1]=q,a2=[];do{if(t1===void 0){let M2=j0(q),T2=(d1=E1!=null?E1:P1==null?void 0:P1.map(f2=>f2.map(K2=>K2.rawValue).join(" ")).join(" "))!=null?d1:"",G2=f(M2,q,T2,void 0);G2!==void 0&&a2.push(G2);break}if(P1===void 0){if(E1===void 0)return;P1=Ds(E1)}if(t1===!1||typeof t1=="function"&&(t1==null?void 0:t1([q[0]-A,q[1]],P1.map(M2=>M2.map(T2=>{var G2,f2;return(f2=(G2=T2.rawValue)==null?void 0:G2.toString())!=null?f2:""}))))!==!0)return;for(let[M2,T2]of P1.entries()){if(M2+N1>=d)break;for(let[G2,f2]of T2.entries()){let K2=[G2+p2,M2+N1],[w4,M4]=K2;if(w4>=Y.length||M4>=O2)continue;let t5=j0(K2),i5=f(t5,K2,f2.rawValue,f2.formatted);i5!==void 0&&a2.push(i5)}}}while(!1);V0(a2),(z1=U2.current)==null||z1.damage(a2.map(M2=>({cell:M2.location})))}},[E,L0,j0,W,C4.paste,Y.length,V0,O2,t1,A,d]);n0("paste",y3,g,!1,!0);let v9=O.useCallback(async(H,f)=>{var I,$;if(!C4.copy)return;let M=f===!0||((I=c.current)==null?void 0:I.contains(document.activeElement))===!0||(($=o.current)==null?void 0:$.contains(document.activeElement))===!0,F=W.columns,T=W.rows,q=(X,r1)=>{if(!V1)K8(X,r1,H);else{let d1=r1.map(z1=>({kind:c1.Text,data:u[z1].title,displayData:u[z1].title,allowOverlay:!1}));K8([d1,...X],r1,H)}};if(M&&a0!==void 0){if(W.current!==void 0){let X=a0(W.current.range,E0.current.signal);typeof X!="object"&&(X=await X()),q(X,(0,p5.default)(W.current.range.x-A,W.current.range.x+W.current.range.width-A))}else if(T!==void 0&&T.length>0){let r1=[...T].map(d1=>{let z1=a0({x:A,y:d1,width:u.length,height:1},E0.current.signal);return typeof z1=="object"?z1[0]:z1().then(P1=>P1[0])});if(r1.some(d1=>d1 instanceof Promise)){let d1=await Promise.all(r1);q(d1,(0,p5.default)(u.length))}else q(r1,(0,p5.default)(u.length))}else if(F.length>0){let X=[],r1=[];for(let d1 of F){let z1=a0({x:d1,y:0,width:1,height:d},E0.current.signal);typeof z1!="object"&&(z1=await z1()),X.push(z1),r1.push(d1-A)}if(X.length===1)q(X[0],r1);else{let d1=X.reduce((z1,P1)=>z1.map((E1,k1)=>[...E1,...P1[k1]]));q(d1,r1)}}}},[u,a0,W,C4.copy,A,d,V1]);n0("copy",v9,g,!1,!1);let vo=O.useCallback(async H=>{var M,F;if(!(!C4.cut||!(((M=c.current)==null?void 0:M.contains(document.activeElement))===!0||((F=o.current)==null?void 0:F.contains(document.activeElement))===!0))&&(await v9(H),W.current!==void 0)){let T={current:{cell:W.current.cell,range:W.current.range,rangeStack:[]},rows:x2.empty(),columns:x2.empty()},q=m4==null?void 0:m4(T);if(q===!1||(T=q===!0?T:q,T.current===void 0))return;e5(T.current.range)}},[e5,W,C4.cut,v9,m4]);n0("cut",vo,g,!1,!1);let po=O.useCallback((H,f)=>{if(J!==void 0){A!==0&&(H=H.map(T=>[T[0]-A,T[1]])),J(H,f);return}if(H.length===0||f===-1)return;let[M,F]=H[f];h.current!==void 0&&h.current[0]===M&&h.current[1]===F||(h.current=[M,F],_4(M,F,!1,!1))},[J,A,_4]),[a7,o7]=(T6=(k6=e0==null?void 0:e0.current)==null?void 0:k6.cell)!=null?T6:[],n7=O.useRef(r0);n7.current=r0,O.useLayoutEffect(()=>{var H,f,M,F;!r2.current&&a7!==void 0&&o7!==void 0&&(a7!==((f=(H=A4.current)==null?void 0:H.current)==null?void 0:f.cell[0])||o7!==((F=(M=A4.current)==null?void 0:M.current)==null?void 0:F.cell[1]))&&n7.current(a7,o7),r2.current=!1},[a7,o7]);let v6=W.current!==void 0&&(W.current.cell[0]>=Y.length||W.current.cell[1]>=O2);O.useLayoutEffect(()=>{v6&&D0(n3,!1)},[v6,D0]);let Mo=O.useMemo(()=>W2===!0&&(C2==null?void 0:C2.tint)===!0?x2.fromSingleSelection(O2-1):x2.empty(),[O2,W2,C2==null?void 0:C2.tint]),xo=O.useCallback(H=>{var f;return typeof F2=="boolean"?F2:(f=F2==null?void 0:F2(H-A))!=null?f:!0},[A,F2]),fo=O.useMemo(()=>{if(Z3===void 0||o.current===null)return null;let{bounds:H,group:f}=Z3,M=o.current.getBoundingClientRect();return O.createElement(Bs,{bounds:H,group:f,canvasBounds:M,onClose:()=>E3(void 0),onFinish:F=>{E3(void 0),s1==null||s1(f,F)}})},[s1,Z3]),Zo=Math.min(Y.length,f1+(G0?1:0));O.useImperativeHandle(t,()=>({appendRow:(H,f)=>T5(H+A,f),updateCells:H=>{var f;return A!==0&&(H=H.map(M=>({cell:[M.cell[0]+A,M.cell[1]]}))),(f=U2.current)==null?void 0:f.damage(H)},getBounds:(H,f)=>{var M;if(!((o==null?void 0:o.current)===null||(c==null?void 0:c.current)===null)){if(H===void 0&&f===void 0){let F=o.current.getBoundingClientRect(),T=F.width/c.current.clientWidth;return{x:F.x-c.current.scrollLeft*T,y:F.y-c.current.scrollTop*T,width:c.current.scrollWidth*T,height:c.current.scrollHeight*T}}return(M=U2.current)==null?void 0:M.getBounds((H!=null?H:0)+A,f)}},focus:()=>{var H;return(H=U2.current)==null?void 0:H.focus()},emit:async H=>{switch(H){case"delete":u9({bounds:void 0,cancel:()=>{},stopPropagation:()=>{},preventDefault:()=>{},ctrlKey:!1,key:"Delete",keyCode:46,metaKey:!1,shiftKey:!1,altKey:!1,rawEvent:void 0,location:void 0});break;case"fill-right":u9({bounds:void 0,cancel:()=>{},stopPropagation:()=>{},preventDefault:()=>{},ctrlKey:!0,key:"r",keyCode:82,metaKey:!1,shiftKey:!1,altKey:!1,rawEvent:void 0,location:void 0});break;case"fill-down":u9({bounds:void 0,cancel:()=>{},stopPropagation:()=>{},preventDefault:()=>{},ctrlKey:!0,key:"d",keyCode:68,metaKey:!1,shiftKey:!1,altKey:!1,rawEvent:void 0,location:void 0});break;case"copy":await v9(void 0,!0);break;case"paste":await y3();break}},scrollTo:r0,remeasureColumns:H=>{for(let f of H)s7(f+A)}}),[T5,s7,v9,u9,y3,A,r0]);let[p6,M6]=i4!=null?i4:[],Eo=O.useCallback(H=>{let[f,M]=H;if(M===-1){a1!=="none"&&(i0(x2.fromSingleSelection(f),void 0,!1),I2());return}p6===f&&M6===M||(g0({cell:H,range:{x:f,y:M,width:1,height:1}},!0,!1,"keyboard-nav"),r0(f,M))},[a1,I2,r0,p6,M6,g0,i0]),[No,Ro]=O.useState(!1),x6=O.useRef((0,Xs.default)(H=>{Ro(H)},5)),Bo=O.useCallback(()=>{x6.current(!0),W.current===void 0&&W.columns.length===0&&W.rows.length===0&&n===void 0&&g0({cell:[A,$2],range:{x:A,y:$2,width:1,height:1}},!0,!1,"keyboard-select")},[$2,W,n,A,g0]),zo=O.useCallback(()=>{x6.current(!1)},[]),[yo,bo]=O.useMemo(()=>{var T;let H,f=(T=j1==null?void 0:j1.scrollbarWidthOverride)!=null?T:z9(),M=d+(W2?1:0);if(typeof B0=="number")H=x1+M*B0;else{let q=0,I=Math.min(M,10);for(let $=0;$I.width+q,0)+f;return[`${Math.min(1e5,F)}px`,`${Math.min(1e5,H)}px`]},[Y,j1==null?void 0:j1.scrollbarWidthOverride,B0,d,W2,x1]),Fo=O.useMemo(()=>j6(h0),[h0]);return O.createElement(Y6.Provider,{value:h0},O.createElement(Os,{style:Fo,className:m1,inWidth:v!=null?v:yo,inHeight:V!=null?V:bo},O.createElement(Rs,{fillHandle:X1,drawFocusRing:N2,experimental:j1,fixedShadowX:Q0,fixedShadowY:v4,getRowThemeOverride:w,headerIcons:P0,imageWindowLoader:q0,initialSize:z4,isDraggable:K9,onDragLeave:X9,onRowMoved:p4,overscrollX:V3,overscrollY:e7,preventDiagonalScrolling:E5,rightElement:j4,rightElementProps:T4,smoothScrollX:Y9,smoothScrollY:w3,className:m1,enableGroups:j,onCanvasFocused:Bo,onCanvasBlur:zo,canvasRef:o,onContextMenu:uo,theme:h0,cellXOffset:K0,cellYOffset:$2,accessibilityHeight:G1.height,onDragEnd:go,columns:Y,nonGrowWidth:z,drawHeader:p3,onColumnProposeMove:B,drawCell:M3,disabledRows:Mo,freezeColumns:Zo,lockColumns:A,firstColAccessible:A===0,getCellContent:j0,minColumnWidth:U0,maxColumnWidth:n4,searchInputRef:a,showSearch:m9,onSearchClose:u3,highlightRegions:Q4,getCellsForSelection:a0,getGroupDetails:x3,headerHeight:y5,isFocused:No,groupHeaderHeight:j?c9:0,freezeTrailingRows:m2+(W2&&(C2==null?void 0:C2.sticky)===!0?1:0),hasAppendRow:W2,onColumnResize:c4,onColumnResizeEnd:v3,onColumnResizeStart:F5,onCellFocused:Eo,onColumnMoved:ho,onDragStart:wo,onHeaderMenuClick:co,onItemHovered:z3,isFilling:(n==null?void 0:n.fillHandle)===!0,onMouseMove:Co,onKeyDown:u9,onKeyUp:W1,onMouseDown:ao,onMouseUp:no,onDragOverCell:Z0,onDrop:o4,onSearchResultsChanged:po,onVisibleRegionChanged:mo,clientSize:S5,rowHeight:B0,searchResults:I1,searchValue:e2,onSearchValueChange:p1,rows:O2,scrollRef:c,selection:W,translateX:G1.tx,translateY:G1.ty,verticalBorder:xo,gridRef:U2,getCellRenderer:L0}),fo,r!==void 0&&O.createElement(O.Suspense,{fallback:null},O.createElement(rL,P(y({},r),{validateCell:w9,bloom:b,id:Vo,getCellRenderer:L0,className:(j1==null?void 0:j1.isSubGrid)===!0?"click-outside-ignore":void 0,provideEditor:k0,imageEditorOverride:m,onFinishEditing:Lo,markdownDivCreateNode:L,isOutsideClick:Q9})))))},js=O.forwardRef(oL);var Ys=20,Qs={getAccessibilityString:e=>{var t,i;return(i=(t=e.data)==null?void 0:t.toString())!=null?i:"false"},kind:c1.Boolean,needsHover:!0,useLabel:!1,needsHoverPosition:!0,measure:()=>50,draw:e=>{var t;return nL(e,e.cell.data,f9(e.cell),(t=e.cell.maxSize)!=null?t:Ys)},onDelete:e=>P(y({},e),{data:!1}),onClick:e=>{var v,V;let{cell:t,posX:i,posY:l,bounds:r,theme:s}=e,{width:a,height:o,x:n,y:C}=r,c=(v=t.maxSize)!=null?v:Ys,h=Math.floor(r.y+o/2),g=F7(c,o,s.cellVerticalPadding),m=b7((V=t.contentAlign)!=null?V:"center",n,a,s.cellHorizontalPadding,g),w=y7(m,h,g),L=S7(n+i,C+l,w);if(f9(t)&&L)return P(y({},t),{data:a3(t.data)})},onPaste:(e,t)=>{let i=O5;return e.toLowerCase()==="true"?i=!0:e.toLowerCase()==="false"?i=!1:e.toLowerCase()==="indeterminate"&&(i=_5),i===t.data?void 0:P(y({},t),{data:i})}};function nL(e,t,i,l){if(!i&&t===O5)return;let{ctx:r,hoverAmount:s,theme:a,rect:o,highlighted:n,hoverX:C,hoverY:c,cell:{contentAlign:h}}=e,{x:g,y:m,width:w,height:L}=o,v=.35,V=i?1-v+v*s:.4;t===O5&&(V*=s),V!==0&&(r.globalAlpha=V,j5(r,a,t,g,m,w,L,n,C,c,l,h),r.globalAlpha=1)}var ta=F1(Y1(),1);var C3=F1(Y1(),1);var Js=X2("div")({name:"BubblesOverlayEditorStyle",class:"gdg-b1ygi5by",propsAsIs:!1});var CL=e=>{let{bubbles:t}=e;return C3.createElement(Js,null,t.map((i,l)=>C3.createElement("div",{key:l,className:"boe-bubble"},i)),C3.createElement("textarea",{className:"gdg-input",autoFocus:!0}))},ea=CL;var ia={getAccessibilityString:e=>k7(e.data),kind:c1.Bubble,needsHover:!1,useLabel:!1,needsHoverPosition:!1,measure:(e,t,i)=>t.data.reduce((l,r)=>e.measureText(r).width+l+20,0)+2*i.cellHorizontalPadding-4,draw:e=>mL(e,e.cell.data),provideEditor:()=>e=>{let{value:t}=e;return ta.createElement(ea,{bubbles:t.data})},onPaste:()=>{}},cL=4;function mL(e,t){var L;let{rect:i,theme:l,ctx:r,highlighted:s}=e,{x:a,y:o,width:n,height:C}=i,c=20,h=8,g=cL,m=a+l.cellHorizontalPadding,w=[];for(let v of t){if(m>a+n)break;let V=E4(v,r,l.baseFontFull).width;w.push({x:m,width:V}),m+=V+h*2+g}r.beginPath();for(let v of w)f0(r,v.x,o+(C-c)/2,v.width+h*2,c,(L=l.roundingRadius)!=null?L:c/2);r.fillStyle=s?l.bgBubbleSelected:l.bgBubble,r.fill();for(let[v,V]of w.entries())r.beginPath(),r.fillStyle=l.textBubble,r.fillText(t[v],V.x+h,o+C/2+x0(r,l))}var ra=F1(Y1(),1);var U9=F1(Y1(),1);var hL=X2("div")({name:"DrilldownOverlayEditorStyle",class:"gdg-d4zsq0x",propsAsIs:!1}),wL=e=>{let{drilldowns:t}=e;return U9.createElement(hL,null,t.map((i,l)=>U9.createElement("div",{key:l,className:"doe-bubble"},i.img!==void 0&&U9.createElement("img",{src:i.img}),U9.createElement("div",null,i.text))))},la=wL;var sa={getAccessibilityString:e=>k7(e.data.map(t=>t.text)),kind:c1.Drilldown,needsHover:!1,useLabel:!1,needsHoverPosition:!1,measure:(e,t,i)=>t.data.reduce((l,r)=>e.measureText(r.text).width+l+20+(r.img!==void 0?18:0),0)+2*i.cellHorizontalPadding-4,draw:e=>LL(e,e.cell.data),provideEditor:()=>e=>{let{value:t}=e;return ra.createElement(la,{drilldowns:t.data})},onPaste:()=>{}},gL=4,Q8={};function HL(e,t,i,l){let r=Math.ceil(window.devicePixelRatio),s=5,a=i-s*2,o=4,n=i*r,C=l+s,c=l*3,h=(c+s*2)*r,g=`${e},${t},${r},${i}`;if(Q8[g]!==void 0)return{el:Q8[g],height:n,width:h,middleWidth:o*r,sideWidth:C*r,padding:s*r,dpr:r};let m=document.createElement("canvas"),w=m.getContext("2d");return w===null?null:(m.width=h,m.height=n,w.scale(r,r),Q8[g]=m,w.beginPath(),f0(w,s,s,c,a,l),w.shadowColor="rgba(24, 25, 34, 0.4)",w.shadowBlur=1,w.fillStyle=e,w.fill(),w.shadowColor="rgba(24, 25, 34, 0.3)",w.shadowOffsetY=1,w.shadowBlur=5,w.fillStyle=e,w.fill(),w.shadowOffsetY=0,w.shadowBlur=0,w.shadowBlur=0,w.beginPath(),f0(w,s+.5,s+.5,c,a,l),w.strokeStyle=t,w.lineWidth=1,w.stroke(),{el:m,height:n,width:h,sideWidth:C*r,middleWidth:l*r,padding:s*r,dpr:r})}function LL(e,t){var Z,R;let{rect:i,theme:l,ctx:r,imageLoader:s,col:a,row:o}=e,{x:n,width:C}=i,c=l.baseFontFull,h=e8(r,c),g=Math.min(i.height,Math.max(16,Math.ceil(h*l.lineHeight)*2)),m=Math.floor(i.y+(i.height-g)/2),w=g-10,L=8,v=gL,V=n+l.cellHorizontalPadding,u=(Z=l.roundingRadius)!=null?Z:6,d=HL(l.bgCell,l.drilldownBorder,g,u),p=[];for(let x of t){if(V>n+C)break;let E=E4(x.text,r,c).width,S=0;x.img!==void 0&&s.loadOrGetImage(x.img,a,o)!==void 0&&(S=w-8+4);let k=E+S+L*2;p.push({x:V,width:k}),V+=k+v}if(d!==null){let{el:x,height:N,middleWidth:E,sideWidth:S,width:k,dpr:b,padding:D}=d,B=S/b,_=D/b;for(let K of p){let Q=Math.floor(K.x),m1=Math.floor(K.width),g1=m1-(B-_)*2;r.imageSmoothingEnabled=!1,r.drawImage(x,0,0,S,N,Q-_,m,B,g),g1>0&&r.drawImage(x,S,0,E,N,Q+(B-_),m,g1,g),r.drawImage(x,k-S,0,S,N,Q+m1-(B-_),m,B,g),r.imageSmoothingEnabled=!0}}r.beginPath();for(let[x,N]of p.entries()){let E=t[x],S=N.x+L;if(E.img!==void 0){let k=s.loadOrGetImage(E.img,a,o);if(k!==void 0){let b=w-8,D=0,B=0,_=k.width,K=k.height;_>K?(D+=(_-K)/2,_=K):K>_&&(B+=(K-_)/2,K=_),r.beginPath(),f0(r,S,m+g/2-b/2,b,b,(R=l.roundingRadius)!=null?R:3),r.save(),r.clip(),r.drawImage(k,D,B,_,K,S,m+g/2-b/2,b,b),r.restore(),S+=b+4}}r.beginPath(),r.fillStyle=l.textBubble,r.fillText(E.text,S,m+g/2+x0(r,l))}}var aa=F1(Y1(),1);var oa={getAccessibilityString:e=>e.data.join(", "),kind:c1.Image,needsHover:!1,useLabel:!1,needsHoverPosition:!1,draw:e=>{var t,i,l;return VL(e,(t=e.cell.displayData)!=null?t:e.cell.data,(l=(i=e.cell.rounding)!=null?i:e.theme.roundingRadius)!=null?l:4,e.cell.contentAlign)},measure:(e,t)=>t.data.length*50,onDelete:e=>P(y({},e),{data:[]}),provideEditor:()=>e=>{let{value:t,onFinishedEditing:i,imageEditorOverride:l}=e,r=l!=null?l:qe;return aa.createElement(r,{urls:t.data,canWrite:t.readonly!==!1,onCancel:i,onChange:s=>{i(P(y({},t),{data:[s]}))}})},onPaste:(e,t)=>{e=e.trim();let l=e.split(",").map(r=>{try{return new URL(r),r}catch(s){return}}).filter(r=>r!==void 0);if(!(l.length===t.data.length&&l.every((r,s)=>r===t.data[s])))return P(y({},t),{data:l})}},J8=4;function VL(e,t,i,l){let{rect:r,col:s,row:a,theme:o,ctx:n,imageLoader:C}=e,{x:c,y:h,height:g,width:m}=r,w=g-o.cellVerticalPadding*2,L=[],v=0;for(let u=0;u0&&(n.beginPath(),f0(n,V,h+o.cellVerticalPadding,d,w,i),n.save(),n.clip()),n.drawImage(u,V,h+o.cellVerticalPadding,d,w),i>0&&n.restore(),V+=d+J8}}function dL(e,t){let i=e*49632+t*325176;return i^=i<<13,i^=i>>17,i^=i<<5,i/4294967295*2}var na={getAccessibilityString:()=>"",kind:c1.Loading,needsHover:!1,useLabel:!1,needsHoverPosition:!1,measure:()=>120,draw:e=>{var c,h;let{cell:t,col:i,row:l,ctx:r,rect:s,theme:a}=e;if(t.skeletonWidth===void 0||t.skeletonWidth===0)return;let o=t.skeletonWidth;t.skeletonWidthVariability!==void 0&&t.skeletonWidthVariability>0&&(o+=Math.round(dL(i,l)*t.skeletonWidthVariability));let n=a.cellHorizontalPadding,C=(c=t.skeletonHeight)!=null?c:Math.min(18,s.height-2*a.cellVerticalPadding);f0(r,s.x+n,s.y+(s.height-C)/2,o,C,(h=a.roundingRadius)!=null?h:3),r.fillStyle=z0(a.textDark,.1),r.fill()},onPaste:()=>{}};var ca=F1(Y1(),1);var v0=F1(Y1(),1);var uL=()=>e=>e.targetWidth,e6=X2("div")({name:"MarkdownOverlayEditorStyle",class:"gdg-m1pnx84e",propsAsIs:!1,vars:{"m1pnx84e-0":[uL(),"px"]}});var Ca=e=>{let{value:t,onChange:i,forceEditMode:l,createNode:r,targetRect:s,onFinish:a,validatedSelection:o}=e,n=t.data,C=t.readonly===!0,[c,h]=v0.useState(n===""||l),g=v0.useCallback(()=>{h(w=>!w)},[]),m=n?"gdg-ml-6":"";return c?v0.createElement(e6,{targetWidth:s.width-20},v0.createElement($4,{autoFocus:!0,highlight:!1,validatedSelection:o,value:n,onKeyDown:w=>{w.key==="Enter"&&w.stopPropagation()},onChange:i}),v0.createElement("div",{className:`gdg-edit-icon gdg-checkmark-hover ${m}`,onClick:()=>a(t)},v0.createElement(Ae,null))):v0.createElement(e6,{targetWidth:s.width},v0.createElement(F9,{contents:n,createNode:r}),!C&&v0.createElement(v0.Fragment,null,v0.createElement("div",{className:"spacer"}),v0.createElement("div",{className:`gdg-edit-icon gdg-edit-hover ${m}`,onClick:g},v0.createElement(q5,null))),v0.createElement("textarea",{className:"gdg-md-edit-textarea gdg-input",autoFocus:!0}))};var ma={getAccessibilityString:e=>{var t,i;return(i=(t=e.data)==null?void 0:t.toString())!=null?i:""},kind:c1.Markdown,needsHover:!1,needsHoverPosition:!1,drawPrep:N4,measure:(e,t,i)=>{let l=t.data.split(` +`)[0];return e.measureText(l).width+2*i.cellHorizontalPadding},draw:e=>I0(e,e.cell.data,e.cell.contentAlign),onDelete:e=>P(y({},e),{data:""}),provideEditor:()=>e=>{let{onChange:t,value:i,target:l,onFinishedEditing:r,markdownDivCreateNode:s,forceEditMode:a,validatedSelection:o}=e;return ca.createElement(Ca,{onFinish:r,targetRect:l,value:i,validatedSelection:o,onChange:n=>t(P(y({},i),{data:n.target.value})),forceEditMode:a,createNode:s})},onPaste:(e,t)=>e===t.data?void 0:P(y({},t),{data:e})};var ha={getAccessibilityString:e=>e.row.toString(),kind:l4.Marker,needsHover:!0,needsHoverPosition:!1,drawPrep:vL,measure:()=>44,draw:e=>ML(e,e.cell.row,e.cell.checked,e.cell.markerKind,e.cell.drawHandle,e.cell.checkboxStyle),onClick:e=>{let{bounds:t,cell:i,posX:l,posY:r}=e,{width:s,height:a}=t,o=i.drawHandle?7+(s-7)/2:s/2,n=a/2;if(Math.abs(l-o)<=10&&Math.abs(r-n)<=10)return P(y({},i),{checked:!i.checked})},onPaste:()=>{}};function vL(e,t){let{ctx:i,theme:l}=e,r=l.markerFontFull,s=t!=null?t:{};return(s==null?void 0:s.font)!==r&&(i.font=r,s.font=r),s.deprep=pL,i.textAlign="center",s}function pL(e){let{ctx:t}=e;t.textAlign="start"}function ML(e,t,i,l,r,s){let{ctx:a,rect:o,hoverAmount:n,theme:C}=e,{x:c,y:h,width:g,height:m}=o,w=i?1:l==="checkbox-visible"?.6+.4*n:n;if(l!=="number"&&w>0){a.globalAlpha=w;let L=7*(i?n:1);if(j5(a,C,i,r?c+L:c,h,r?g-L:g,m,!0,void 0,void 0,18,"center",s),r){a.globalAlpha=n,a.beginPath();for(let v of[3,6])for(let V of[-5,-1,3])a.rect(c+v,h+m/2+V,2,2);a.fillStyle=C.textLight,a.fill(),a.beginPath()}a.globalAlpha=1}if(l==="number"||l==="both"&&!i){let L=t.toString(),v=C.markerFontFull,V=c+g/2;l==="both"&&n!==0&&(a.globalAlpha=1-n),a.fillStyle=C.textLight,a.font=v,a.fillText(L,V,h+m/2+x0(a,v)),n!==0&&(a.globalAlpha=1)}}var wa={getAccessibilityString:()=>"",kind:l4.NewRow,needsHover:!0,needsHoverPosition:!1,measure:()=>200,draw:e=>xL(e,e.cell.hint,e.cell.icon),onPaste:()=>{}};function xL(e,t,i){let{ctx:l,rect:r,hoverAmount:s,theme:a,spriteManager:o}=e,{x:n,y:C,width:c,height:h}=r;l.beginPath(),l.globalAlpha=s,l.rect(n+1,C+1,c,h-2),l.fillStyle=a.bgHeaderHovered,l.fill(),l.globalAlpha=1,l.beginPath();let g=t!=="",m=0;if(i!==void 0){let L=h-8,v=n+8/2,V=C+8/2;o.drawSprite(i,"normal",l,v,V,L,a,g?1:s),m=L}else{m=24;let w=12,L=g?w:s*w,v=g?0:(1-s)*w*.5,V=a.cellHorizontalPadding+4;L>0&&(l.moveTo(n+V+v,C+h/2),l.lineTo(n+V+v+L,C+h/2),l.moveTo(n+V+v+L*.5,C+h/2-L*.5),l.lineTo(n+V+v+L*.5,C+h/2+L*.5),l.lineWidth=2,l.strokeStyle=a.bgIconHeader,l.lineCap="round",l.stroke())}l.fillStyle=a.textMedium,l.fillText(t,m+n+a.cellHorizontalPadding+.5,C+h/2+x0(l,a)),l.beginPath()}var M5=F1(Y1(),1);var fL=M5.lazy(async()=>await import("./number-overlay-editor-CU4RMYZF.js")),ga={getAccessibilityString:e=>{var t,i;return(i=(t=e.data)==null?void 0:t.toString())!=null?i:""},kind:c1.Number,needsHover:!1,needsHoverPosition:!1,useLabel:!0,drawPrep:N4,draw:e=>I0(e,e.cell.displayData,e.cell.contentAlign),measure:(e,t,i)=>e.measureText(t.displayData).width+i.cellHorizontalPadding*2,onDelete:e=>P(y({},e),{data:void 0}),provideEditor:()=>e=>{let{isHighlighted:t,onChange:i,value:l,validatedSelection:r}=e;return M5.createElement(M5.Suspense,{fallback:null},M5.createElement(fL,{highlight:t,disabled:l.readonly===!0,value:l.data,fixedDecimals:l.fixedDecimals,allowNegative:l.allowNegative,thousandSeparator:l.thousandSeparator,decimalSeparator:l.decimalSeparator,validatedSelection:r,onChange:s=>{var a;return i(P(y({},l),{data:Number.isNaN((a=s.floatValue)!=null?a:0)?0:s.floatValue}))}}))},onPaste:(e,t,i)=>{var r;let l=typeof i.rawValue=="number"?i.rawValue:Number.parseFloat(typeof i.rawValue=="string"?i.rawValue:e);if(!(Number.isNaN(l)||t.data===l))return P(y({},t),{data:l,displayData:(r=i.formattedString)!=null?r:t.displayData})}};var Ha={getAccessibilityString:()=>"",measure:()=>108,kind:c1.Protected,needsHover:!1,needsHoverPosition:!1,draw:ZL,onPaste:()=>{}};function ZL(e){let{ctx:t,theme:i,rect:l}=e,{x:r,y:s,height:a}=l;t.beginPath();let o=2.5,n=r+i.cellHorizontalPadding+o,C=s+a/2,c=Math.cos(Y3(30))*o,h=Math.sin(Y3(30))*o;for(let g=0;g<12;g++)t.moveTo(n,C-o),t.lineTo(n,C+o),t.moveTo(n+c,C-h),t.lineTo(n-c,C+h),t.moveTo(n-c,C-h),t.lineTo(n+c,C+h),n+=8;t.lineWidth=1.1,t.lineCap="square",t.strokeStyle=i.textLight,t.stroke()}var La=F1(Y1(),1);var Va={getAccessibilityString:e=>{var t,i;return(i=(t=e.data)==null?void 0:t.toString())!=null?i:""},kind:c1.RowID,needsHover:!1,needsHoverPosition:!1,drawPrep:(e,t)=>N4(e,t,e.theme.textLight),draw:e=>I0(e,e.cell.data,e.cell.contentAlign),measure:(e,t,i)=>e.measureText(t.data).width+i.cellHorizontalPadding*2,provideEditor:()=>e=>{let{isHighlighted:t,onChange:i,value:l,validatedSelection:r}=e;return La.default.createElement($4,{highlight:t,autoFocus:l.readonly!==!0,disabled:l.readonly!==!1,value:l.data,validatedSelection:r,onChange:s=>i(P(y({},l),{data:s.target.value}))})},onPaste:()=>{}};var da=F1(Y1(),1);var ua={getAccessibilityString:e=>{var t,i;return(i=(t=e.data)==null?void 0:t.toString())!=null?i:""},kind:c1.Text,needsHover:e=>e.hoverEffect===!0,needsHoverPosition:!1,drawPrep:N4,useLabel:!0,draw:e=>{var g;let{cell:t,hoverAmount:i,hyperWrapping:l,ctx:r,rect:s,theme:a,overrideCursor:o}=e,{displayData:n,contentAlign:C,hoverEffect:c,allowWrapping:h}=t;if(c===!0&&i>0){r.textBaseline="alphabetic";let m=a.cellHorizontalPadding,w=a.cellVerticalPadding,L=E4(n,r,a.baseFontFull,"alphabetic"),v=s.height-w,V=Math.min(v,L.actualBoundingBoxAscent*2.5);r.beginPath(),f0(r,s.x+m/2,s.y+(s.height-V)/2+1,L.width+m*3,V-1,(g=a.roundingRadius)!=null?g:4),r.globalAlpha=i,r.fillStyle=z0(a.textDark,.1),r.fill(),r.globalAlpha=1,r.fillStyle=a.textDark,r.textBaseline="middle",o==null||o("text")}I0(e,n,C,h,l)},measure:(e,t,i)=>{let l=t.displayData.split(` +`,t.allowWrapping===!0?void 0:1),r=0;for(let s of l)r=Math.max(r,e.measureText(s).width);return r+2*i.cellHorizontalPadding},onDelete:e=>P(y({},e),{data:""}),provideEditor:e=>({disablePadding:e.allowWrapping===!0,editor:t=>{let{isHighlighted:i,onChange:l,value:r,validatedSelection:s}=t;return da.createElement($4,{style:e.allowWrapping===!0?{padding:"3px 8.5px"}:void 0,highlight:i,autoFocus:r.readonly!==!0,disabled:r.readonly===!0,altNewline:!0,value:r.data,validatedSelection:s,onChange:a=>l(P(y({},r),{data:a.target.value}))})}}),onPaste:(e,t,i)=>{var l;return e===t.data?void 0:P(y({},t),{data:e,displayData:(l=i.formattedString)!=null?l:t.displayData})}};var xa=F1(Y1(),1);var V4=F1(Y1(),1);var va=X2("div")({name:"UriOverlayEditorStyle",class:"gdg-u1rrojo",propsAsIs:!1});var EL=e=>{let{uri:t,onChange:i,forceEditMode:l,readonly:r,validatedSelection:s,preview:a}=e,[o,n]=V4.useState(!r&&(t===""||l)),C=V4.useCallback(()=>{n(!0)},[]);return o?V4.createElement($4,{validatedSelection:s,highlight:!0,autoFocus:!0,value:t,onChange:i}):V4.createElement(va,null,V4.createElement("a",{className:"gdg-link-area",href:t,target:"_blank",rel:"noopener noreferrer"},a),!r&&V4.createElement("div",{className:"gdg-edit-icon",onClick:C},V4.createElement(q5,null)),V4.createElement("textarea",{className:"gdg-input",autoFocus:!0}))},pa=EL;function Ma(e,t,i,l){let r=i.cellHorizontalPadding,s=t.height/2-e.actualBoundingBoxAscent/2,a=e.width,o=e.actualBoundingBoxAscent;return l==="right"?r=t.width-a-i.cellHorizontalPadding:l==="center"&&(r=t.width/2-a/2),{x:r,y:s,width:a,height:o}}var fa={getAccessibilityString:e=>{var t,i;return(i=(t=e.data)==null?void 0:t.toString())!=null?i:""},kind:c1.Uri,needsHover:e=>e.hoverEffect===!0,needsHoverPosition:!0,useLabel:!0,drawPrep:N4,draw:e=>{var c;let{cell:t,theme:i,overrideCursor:l,hoverX:r,hoverY:s,rect:a,ctx:o}=e,n=(c=t.displayData)!=null?c:t.data,C=t.hoverEffect===!0;if(l!==void 0&&C&&r!==void 0&&s!==void 0){let h=E4(n,o,i.baseFontFull),g=Ma(h,a,i,t.contentAlign),{x:m,y:w,width:L,height:v}=g;if(r>=m-4&&r<=m-4+L+8&&s>=w-4&&s<=w-4+v+8){let V=x0(o,i.baseFontFull);l("pointer");let u=5,d=w-V;o.beginPath(),o.moveTo(a.x+m,Math.floor(a.y+d+v+u)+.5),o.lineTo(a.x+m+L,Math.floor(a.y+d+v+u)+.5),o.strokeStyle=i.linkColor,o.stroke(),o.save(),o.fillStyle=e.cellFillColor,I0(P(y({},e),{rect:P(y({},a),{x:a.x-1})}),n,t.contentAlign),I0(P(y({},e),{rect:P(y({},a),{x:a.x-2})}),n,t.contentAlign),I0(P(y({},e),{rect:P(y({},a),{x:a.x+1})}),n,t.contentAlign),I0(P(y({},e),{rect:P(y({},a),{x:a.x+2})}),n,t.contentAlign),o.restore()}}o.fillStyle=C?i.linkColor:i.textDark,I0(e,n,t.contentAlign)},onClick:e=>{var c;let{cell:t,bounds:i,posX:l,posY:r,theme:s}=e,a=(c=t.displayData)!=null?c:t.data;if(t.hoverEffect!==!0||t.onClickUri===void 0)return;let o=ut(a,s.baseFontFull);if(o===void 0)return;let n=Ma(o,i,s,t.contentAlign);G4({x:n.x-4,y:n.y-4,width:n.width+8,height:n.height+8},l,r)&&t.onClickUri(e)},measure:(e,t,i)=>{var l;return e.measureText((l=t.displayData)!=null?l:t.data).width+i.cellHorizontalPadding*2},onDelete:e=>P(y({},e),{data:""}),provideEditor:e=>t=>{var a;let{onChange:i,value:l,forceEditMode:r,validatedSelection:s}=t;return xa.createElement(pa,{forceEditMode:l.readonly!==!0&&(r||e.hoverEffect===!0&&e.onClickUri!==void 0),uri:l.data,preview:(a=l.displayData)!=null?a:l.data,validatedSelection:s,readonly:l.readonly===!0,onChange:o=>i(P(y({},l),{data:o.target.value}))})},onPaste:(e,t,i)=>{var l;return e===t.data?void 0:P(y({},t),{data:e,displayData:(l=i.formattedString)!=null?l:t.displayData})}};var Za=[ha,wa,Qs,ia,sa,oa,na,ma,ga,Ha,Va,ua,fa];var Ra=F1(Na(),1);var t6=[],i6=class extends D9{constructor(){super(...arguments);c2(this,"imageLoaded",()=>{});c2(this,"loadedLocations",[]);c2(this,"cache",{});c2(this,"sendLoaded",(0,Ra.default)(()=>{this.imageLoaded(new R4(this.loadedLocations)),this.loadedLocations=[]},20));c2(this,"clearOutOfWindow",()=>{let i=Object.keys(this.cache);for(let l of i){let r=this.cache[l],s=!1;for(let a=0;a{n||(n=!0,t6.length<12?t6.unshift(o):a||(o.src=""))}},c=new Promise(g=>o.addEventListener("load",()=>g(null)));requestAnimationFrame(async()=>{try{o.src=i,await c,await o.decode();let g=this.cache[s];if(g!==void 0&&!n){g.img=o;for(let m of g.cells)this.loadedLocations.push(X5(m));a=!0,this.sendLoaded()}}catch(g){C.cancel()}}),this.cache[s]=C}loadOrGetImage(i,l,r){let s=i,a=this.cache[s];if(a!==void 0){let o=F0(l,r);return a.cells.includes(o)||a.cells.push(o),a.img}else this.loadImage(i,l,r,s)}},Ba=i6;var yL=(e,t)=>{let i=x5.useMemo(()=>y(y({},fi),e.headerIcons),[e.headerIcons]),l=x5.useMemo(()=>{var r;return(r=e.imageWindowLoader)!=null?r:new Ba},[e.imageWindowLoader]);return x5.createElement(js,P(y({},e),{renderers:Za,headerIcons:i,ref:t,imageWindowLoader:l}))},l6=x5.forwardRef(yL);var w0=F1(Y1(),1);var za=r=>{var s=r,{color:e="currentColor",size:t=24,className:i}=s,l=o0(s,["color","size","className"]);return w0.default.createElement("svg",P(y({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e},l),{className:"remixicon "+(i||"")}),w0.default.createElement("path",{d:"M3 4H21V6H3V4ZM3 19H21V21H3V19ZM3 14H21V16H3V14ZM3 9H21V11H3V9Z"}))};var ya=r=>{var s=r,{color:e="currentColor",size:t=24,className:i}=s,l=o0(s,["color","size","className"]);return w0.default.createElement("svg",P(y({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e},l),{className:"remixicon "+(i||"")}),w0.default.createElement("path",{d:"M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z"}))};var ba=r=>{var s=r,{color:e="currentColor",size:t=24,className:i}=s,l=o0(s,["color","size","className"]);return w0.default.createElement("svg",P(y({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e},l),{className:"remixicon "+(i||"")}),w0.default.createElement("path",{d:"M10.8284 12.0007L15.7782 16.9504L14.364 18.3646L8 12.0007L14.364 5.63672L15.7782 7.05093L10.8284 12.0007Z"}))};var Fa=r=>{var s=r,{color:e="currentColor",size:t=24,className:i}=s,l=o0(s,["color","size","className"]);return w0.default.createElement("svg",P(y({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e},l),{className:"remixicon "+(i||"")}),w0.default.createElement("path",{d:"M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z"}))};var Sa=r=>{var s=r,{color:e="currentColor",size:t=24,className:i}=s,l=o0(s,["color","size","className"]);return w0.default.createElement("svg",P(y({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e},l),{className:"remixicon "+(i||"")}),w0.default.createElement("path",{d:"M13 12H16L12 16L8 12H11V8H13V12ZM15 4H5V20H19V8H15V4ZM3 2.9918C3 2.44405 3.44749 2 3.9985 2H16L20.9997 7L21 20.9925C21 21.5489 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918Z"}))};var ka=r=>{var s=r,{color:e="currentColor",size:t=24,className:i}=s,l=o0(s,["color","size","className"]);return w0.default.createElement("svg",P(y({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e},l),{className:"remixicon "+(i||"")}),w0.default.createElement("path",{d:"M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z"}))};var Ta=r=>{var s=r,{color:e="currentColor",size:t=24,className:i}=s,l=o0(s,["color","size","className"]);return w0.default.createElement("svg",P(y({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e},l),{className:"remixicon "+(i||"")}),w0.default.createElement("path",{d:"M11 2C15.968 2 20 6.032 20 11C20 15.968 15.968 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2ZM11 18C14.8675 18 18 14.8675 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18ZM19.4853 18.0711L22.3137 20.8995L20.8995 22.3137L18.0711 19.4853L19.4853 18.0711Z"}))};var Pa=r=>{var s=r,{color:e="currentColor",size:t=24,className:i}=s,l=o0(s,["color","size","className"]);return w0.default.createElement("svg",P(y({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e},l),{className:"remixicon "+(i||"")}),w0.default.createElement("path",{d:"M19 3L23 8H20V20H18V8H15L19 3ZM14 18V20H3V18H14ZM14 11V13H3V11H14ZM12 4V6H3V4H12Z"}))},Da=r=>{var s=r,{color:e="currentColor",size:t=24,className:i}=s,l=o0(s,["color","size","className"]);return w0.default.createElement("svg",P(y({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e},l),{className:"remixicon "+(i||"")}),w0.default.createElement("path",{d:"M20 4V16H23L19 21L15 16H18V4H20ZM12 18V20H3V18H12ZM14 11V13H3V11H14ZM14 4V6H3V4H14Z"}))};var J1=F1(Y1()),Ya=F1(P6());function Aa(e,t){for(var i=0;ie.length)&&(t=e.length);for(var i=0,l=new Array(t);i=e.length?{done:!0}:{done:!1,value:e[l++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Oa(e){var t=(0,J1.useRef)(null);function i(l){!l||l===t.current||(t.current=l,e(l))}return i}function SL(e){var t=(0,J1.useRef)(e);return(0,J1.useMemo)(function(){function i(r){typeof r=="function"?t.current=r(t.current):t.current=r}function l(){return t.current}return[l,i]},[])}function kL(){var e=(0,J1.useRef)([]);return(0,J1.useMemo)(function(){function t(){return e.current.length>0}function i(){for(var r=a9(e.current),s;!(s=r()).done;){var a=s.value;a()}e.current=[]}function l(r){e.current.push(r)}return{hasEventSubscriptions:t,removeAllEventSubscriptions:i,addEventSubscription:l}},[])}var r6=typeof window!="undefined"?J1.useLayoutEffect:J1.useEffect;function TL(e,t){var i=(0,J1.useRef)(e);return t?(i.current=e,i):(i.current=null,i)}function G9(e){return parseFloat(e.replace("px",""))}function a6(e,t,i){return ei?i:e}function _a(e){return e!=null}function Wa(){for(var e=arguments.length,t=new Array(e),i=0;i=0})}},{key:"negativeSides",get:function(){var l=this;return Object.fromEntries(Vt.filter(function(r){return l[r]<0}).map(function(r){return[r,l[r]]}))}}]),e}();function nH(){for(var e=arguments.length,t=new Array(e),l=0;lg?g-E:0;H[M.prop]=Hs(E+r+p,w,g),H[M.opposite.prop]=H[M.prop]+s.factor(n[h])}H.width=H.right-H.left,H.height=H.bottom-H.top;var x=l5.create(H);return r===0&&(this._cachedLayerBounds=x),x},t.getLayerCollisionBounds=function(){var r=this.offsets.container;return this.getLayerBounds().mapSides(function(i,s){return s-=i.factor(r)}).merge(function(i){var s=i.width,o=i.height;return{width:s+r*2,height:o+r*2}})},t.getContainerOffsets=function(r){if(this._cachedContainerOffsets&&!r)return this._cachedContainerOffsets;var i=this.subjectsBounds.merge({layer:r||this.getLayerCollisionBounds()}),s=Vs.mergeSmallestSides(i.layerOffsetsToScrollContainers);return r||(this._cachedContainerOffsets=s),s},vt(e,[{key:"type",get:function(){return this.primary.prop+"-"+(this.secondary.prop==="center"?"center":["bottom","right"].includes(this.secondary.prop)?"end":"start")}},{key:"triggerIsBigger",get:function(){var r=this.secondary.isHorizontal,i=this.subjectsBounds,s=i.triggerHasBiggerWidth,o=i.triggerHasBiggerHeight;return r&&s||!r&&o}},{key:"fitsContainer",get:function(){return this.getContainerOffsets().allSidesArePositive}},{key:"visibleSurface",get:function(){var r=this.getLayerBounds(),i=this.getContainerOffsets(r),s=i.negativeSides;for(var o in s)s[o]=-s[o];return r.substract(s).surface}},{key:"secondaryOffsetSide",get:function(){var r,i,s=this,o=this.getContainerOffsets(),a=(r=(i=Object.entries(o.negativeSides).map(function(c){var C=c[0],m=c[1];return[y0[C],m]}).filter(function(c){var C=c[0];return s.primary.isOppositeDirection(C)}).sort(function(c,C){var m=c[1],h=C[1];return h-m}))==null?void 0:i[0])!=null?r:[],n=a[0];return n||null}}]),e}(),cH=function(e){xF(t,e);function t(){return e.apply(this,arguments)||this}var l=t.prototype;return l.getLayerBounds=function(){var i=this.subjectsBounds,s=i.trigger,o=i.layer,a=l5.empty();return a.top=s.top+s.height/2-o.height/2,a.bottom=a.top+o.height,a.left=s.left+s.width/2-o.width/2,a.right=a.left+o.width,a.width=a.right-a.left,a.height=a.bottom-a.top,a},t}(LH);function PF(e,t,l){var r=e.layer,i=e.trigger,s=e.arrow,o=t.primary.oppositeSizeProp,a=t.primary.isHorizontal?["top","bottom"]:["left","right"],n=a[0],c=a[1],C=r[n]+r[o]/2-i[n]-s[o]/2-l,m=r[c]-r[o]/2-i[c]+s[o]/2+l;return(C<0?-C:0)+(m>0?-m:0)}var CH={position:"absolute",willChange:"top, left",left:null,right:null,top:null,bottom:null};function TF(e,t,l){var r;if(t.primary.isCenter)return CH;var i=e.layer,s=e.trigger,o=e.arrow,a=t.primary.oppositeSizeProp,n=s[a]>i[a],c=l+o[a]/2,C=i[a]-o[a]/2-l,m=PF(e,t,l),h=t.primary.prop,u=t.primary.oppositeCssProp,d=n?i[a]/2+m:s[u]+s[a]/2-i[u];return M4({},CH,(r={},r[h]="100%",r[u]=Hs(d,c,C),r))}var mH=function(){function e(l,r,i){this.placements=void 0,this.config=void 0,this.subjectsBounds=void 0,this.placements=l,this.config=r,this.subjectsBounds=i}e.getSidesFromPlacementType=function(r){var i=r.split("-"),s=i[0],o=i[1],a=y0[s],n;return o==="center"?n=d0.center:a.isHorizontal?n=o==="start"?d0.top:d0.bottom:n=o==="start"?d0.left:d0.right,[a,n]},e.create=function(r,i){var s={arrow:i.arrowOffset,container:i.containerOffset,trigger:i.triggerOffset};function o(a){a===void 0&&(a=i.placement);var n=e.getSidesFromPlacementType(a),c=n[0],C=n[1],m=y0[c.isHorizontal?i.preferY:i.preferX],h=!c.isHorizontal&&r.triggerHasBiggerWidth||c.isHorizontal&&r.triggerHasBiggerHeight;function u(H,f){return new LH(H,f,r,i.layerDimensions,s)}var d=[];return d[0]=u(c,C),d[1]=u(c,C.isCenter?m:d0.center),d[2]=u(c,d0[(C.opposite.isCenter?m.opposite:C.opposite).prop]),d[3]=u(m,h?c:d0[c.opposite.prop]),d[4]=u(m,d0.center),d[5]=u(m,h?d0[c.opposite.prop]:c),d[6]=u(y0[m.opposite.prop],h?c:d0[c.opposite.prop]),d[7]=u(y0[m.opposite.prop],d0.center),d[8]=u(y0[m.opposite.prop],h?d0[c.opposite.prop]:c),d[9]=u(y0[c.opposite.prop],C),d[10]=u(y0[c.opposite.prop],C.isCenter?m:d0.center),d[11]=u(y0[c.opposite.prop],d0[(C.opposite.isCenter?m.opposite:C.opposite).prop]),d=d.filter(function(H){return H.type===i.placement||i.possiblePlacements.includes(H.type)}),d}return i.placement==="center"?new e([new cH(d0.center,d0.center,r,i.layerDimensions,s)].concat(o(i.preferY+"-"+i.preferX)),i,r):new e(o(),i,r)};var t=e.prototype;return t.filterPlacementsBySide=function(r){return this.placements.filter(function(i){return i.primary===r})},t.findFirstPlacementThatFits=function(){return this.placements.find(function(r){return r.fitsContainer})},t.placementWithBiggestVisibleSurface=function(){var r=this.placements.map(function(s){return{placement:s,surface:s.visibleSurface}}).sort(function(s,o){return o.surface-s.surface}),i=r[0].placement;return i},t.findSuitablePlacement=function(){return this.config.auto?this.findFirstPlacementThatFits()||this.placementWithBiggestVisibleSurface():this.placements[0]},t.getSecondaryOffset=function(r){var i=this.config,s=i.auto,o=i.snap;if(!s||o||r instanceof cH)return 0;var a=this.filterPlacementsBySide(r.primary),n=a.indexOf(r)===0;if(n&&r.fitsContainer)return 0;var c=a.find(function(H){return!H.fitsContainer});if(!c)return 0;var C=c.secondaryOffsetSide;if(!C)return 0;var m=r.getContainerOffsets(),h=r.secondary,u;r.triggerIsBigger||c===r?u=C.isPush?-1:1:u=h===d0.left||[d0.top,d0.center].includes(h)&&C.isPush?-1:1;var d=m[C.prop];return d*u},t.getStyles=function(r,i,s,o){var a={willChange:"top, left, width, height"},n=TF(this.subjectsBounds.merge({layer:r}),i,this.config.arrowOffset),c=this.config.overflowContainer?M4({},a,{position:"fixed",top:r.top,left:r.left}):M4({},a,{position:"absolute",top:r.top-this.subjectsBounds.parent.top+s.top-o.top,left:r.left-this.subjectsBounds.parent.left+s.left-o.left});return{arrow:n,layer:c}},t.getHasDisappeared=function(r){var i=this.config.overflowContainer?this.subjectsBounds.trigger:r,s=Vs.mergeSmallestSides(this.subjectsBounds.offsetsToScrollContainers(i,!0)),o=Object.entries(s.negativeSides),a=o.some(function(n){var c=n[0],C=n[1],m=y0[c];return C<=-i[m.sizeProp]});return a?"full":s.allSidesArePositive?null:"partial"},t.result=function(r,i){var s=this.findSuitablePlacement(),o=this.getSecondaryOffset(s),a=s.getLayerBounds(o),n=this.getStyles(a,s,r,i),c=s.primary.prop;return{styles:n,layerSide:c,placement:s,layerBounds:a,hasDisappeared:this.getHasDisappeared(a)}},e}(),DF=function(){function e(l,r){this.overflowContainer=void 0,this.trigger=void 0,this.layer=void 0,this.arrow=void 0,this.parent=void 0,this.window=void 0,this.scrollContainers=void 0,this.overflowContainer=r,Object.assign(this,l)}e.create=function(r,i,s,o,a,n,c,C){var m=l5.fromWindow(r);return new e({layer:l5.fromElement(i,{environment:r,withTransform:!1}),trigger:C?l5.create(Ls(C())):l5.fromElement(s),arrow:a?l5.fromElement(a):l5.empty(),parent:o?l5.fromElement(o):m,window:m,scrollContainers:[m].concat(n.map(function(h){return l5.fromElement(h,{withScrollbars:!1})}))},c)};var t=e.prototype;return t.merge=function(r){return new e(M4({},this,r),this.overflowContainer)},t.offsetsToScrollContainers=function(r,i){i===void 0&&(i=!1);var s=this.overflowContainer&&!i?[this.window]:this.scrollContainers;return s.map(function(o){return o.offsetsTo(r)})},vt(e,[{key:"layerOffsetsToScrollContainers",get:function(){return this.offsetsToScrollContainers(this.layer)}},{key:"triggerHasBiggerWidth",get:function(){return this.trigger.width>this.layer.width}},{key:"triggerHasBiggerHeight",get:function(){return this.trigger.height>this.layer.height}}]),e}(),hH=null;var t5={auto:!1,arrowOffset:0,containerOffset:10,triggerOffset:0,overflowContainer:!0,placement:"top-center",possiblePlacements:FF,preferX:"right",preferY:"bottom",snap:!1,container:void 0,trigger:void 0};function VH(e){var t,l=e.isOpen,r=l===void 0?!1:l,i=e.overflowContainer,s=i===void 0?t5.overflowContainer:i,o=e.environment,a=o===void 0?typeof window!="undefined"?window:void 0:o,n=e.ResizeObserver,c=e.placement,C=c===void 0?t5.placement:c,m=e.possiblePlacements,h=m===void 0?t5.possiblePlacements:m,u=e.preferX,d=u===void 0?t5.preferX:u,H=e.preferY,f=H===void 0?t5.preferY:H,w=e.auto,g=w===void 0?t5.auto:w,L=e.snap,v=L===void 0?t5.snap:L,M=e.triggerOffset,E=M===void 0?t5.triggerOffset:M,p=e.containerOffset,x=p===void 0?t5.containerOffset:p,Z=e.arrowOffset,N=Z===void 0?t5.arrowOffset:Z,F=e.container,b=F===void 0?t5.container:F,B=e.layerDimensions,U=B===void 0?null:B,g1=e.onDisappear,h1=e.onOutsideClick,J=e.onParentClose,n1=e.trigger,O=(0,r2.useState)(function(){return{layerSide:C==="center"?"center":mH.getSidesFromPlacementType(C)[0].prop,styles:{layer:{position:s?"fixed":"absolute",top:0,left:0},arrow:{position:"absolute",top:0,left:0}}}}),a1=O[0],q=O[1],E1=(0,r2.useRef)(null),c1=NF(a1,r),r1=(0,r2.useRef)({cancelled:!1});(0,r2.useEffect)(function(){return function(){r1.current.cancelled=!0}},[]);var d1=(0,r2.useCallback)(function(_1,s1,H1){var A=_1.arrow,D=_1.layer,k1=_1.scrollContainers,D1=_1.trigger,n2=k1[0],N1=DF.create(a,D,D1,n2,A,k1,s,n1==null?void 0:n1.getBounds),g2={placement:C,possiblePlacements:h,auto:g,layerDimensions:U,arrowOffset:N,containerOffset:x,triggerOffset:E,preferX:d,preferY:f,snap:v,overflowContainer:s},Y1=mH.create(N1,g2).result(s1,H1),Q1=Y1.hasDisappeared,C2=Y1.layerSide,u2=Y1.styles,s2={layerSide:C2,styles:u2};if(!c1.current||IF(c1.current,s2)){c1.current=s2,r1.current.cancelled=!0;var o1={cancelled:!1};r1.current=o1,Promise.resolve().then(function(){o1.cancelled||q(s2)})}oH(Q1)&&oH(g1)&&g1(Q1)},[N,g,x,a,U,g1,s,C,h,d,f,v,E,c1,n1]),T1=zF({ResizeObserverPolyfill:n,environment:a,enabled:r,overflowContainer:s,onChange:d1,triggerOption:n1}),e2=T1.triggerRef,U1=T1.layerRef,P2=T1.arrowRef,O1=T1.closestScrollContainer,t2=SF({isOpen:r,onOutsideClick:h1,onParentClose:J}),X1=t2.closeOnOutsideClickRefs,p1=t2.registrations,i2={triggerProps:n1?{}:{ref:aH(e2,X1.trigger,E1)},layerProps:{ref:aH(U1,X1.layer),style:a1.styles.layer},arrowProps:{ref:P2,style:a1.styles.arrow,layerSide:a1.layerSide},layerSide:a1.layerSide,triggerBounds:r?n1?n1.getBounds():(t=E1.current)==null?void 0:t.getBoundingClientRect():null,renderLayer:function(_1){return typeof document!="undefined"?(0,uH.createPortal)((0,r2.createElement)(yF,{registrations:p1,children:_1}),s||!O1?OF(b):O1):null}};return i2}function IF(e,t){if(e.layerSide!==t.layerSide)return!0;for(var l=["position","top","left","right","bottom"],r=0,i=l;r=0})}},{key:"negativeSides",get:function(){var i=this;return Object.fromEntries(m3.filter(function(l){return i[l]<0}).map(function(l){return[l,i[l]]}))}}]),e}();function qa(){for(var e=arguments.length,t=new Array(e),i=0;iu?u-R:0;L[Z.prop]=a6(R+l+x,V,u),L[Z.opposite.prop]=L[Z.prop]+s.factor(n[g])}L.width=L.right-L.left,L.height=L.bottom-L.top;var N=u4.create(L);return l===0&&(this._cachedLayerBounds=N),N},t.getLayerCollisionBounds=function(){var l=this.offsets.container;return this.getLayerBounds().mapSides(function(r,s){return s-=r.factor(l)}).merge(function(r){var s=r.width,a=r.height;return{width:s+l*2,height:a+l*2}})},t.getContainerOffsets=function(l){if(this._cachedContainerOffsets&&!l)return this._cachedContainerOffsets;var r=this.subjectsBounds.merge({layer:l||this.getLayerCollisionBounds()}),s=n6.mergeSmallestSides(r.layerOffsetsToScrollContainers);return l||(this._cachedContainerOffsets=s),s},h3(e,[{key:"type",get:function(){return this.primary.prop+"-"+(this.secondary.prop==="center"?"center":["bottom","right"].includes(this.secondary.prop)?"end":"start")}},{key:"triggerIsBigger",get:function(){var l=this.secondary.isHorizontal,r=this.subjectsBounds,s=r.triggerHasBiggerWidth,a=r.triggerHasBiggerHeight;return l&&s||!l&&a}},{key:"fitsContainer",get:function(){return this.getContainerOffsets().allSidesArePositive}},{key:"visibleSurface",get:function(){var l=this.getLayerBounds(),r=this.getContainerOffsets(l),s=r.negativeSides;for(var a in s)s[a]=-s[a];return l.substract(s).surface}},{key:"secondaryOffsetSide",get:function(){var l,r,s=this,a=this.getContainerOffsets(),o=(l=(r=Object.entries(a.negativeSides).map(function(C){var c=C[0],h=C[1];return[p0[c],h]}).filter(function(C){var c=C[0];return s.primary.isOppositeDirection(c)}).sort(function(C,c){var h=C[1],g=c[1];return g-h}))==null?void 0:r[0])!=null?l:[],n=o[0];return n||null}}]),e}(),$a=function(e){bL(t,e);function t(){return e.apply(this,arguments)||this}var i=t.prototype;return i.getLayerBounds=function(){var r=this.subjectsBounds,s=r.trigger,a=r.layer,o=u4.empty();return o.top=s.top+s.height/2-a.height/2,o.bottom=o.top+a.height,o.left=s.left+s.width/2-a.width/2,o.right=o.left+a.width,o.width=o.right-o.left,o.height=o.bottom-o.top,o},t}(eo);function UL(e,t,i){var l=e.layer,r=e.trigger,s=e.arrow,a=t.primary.oppositeSizeProp,o=t.primary.isHorizontal?["top","bottom"]:["left","right"],n=o[0],C=o[1],c=l[n]+l[a]/2-r[n]-s[a]/2-i,h=l[C]-l[a]/2-r[C]+s[a]/2+i;return(c<0?-c:0)+(h>0?-h:0)}var Ua={position:"absolute",willChange:"top, left",left:null,right:null,top:null,bottom:null};function GL(e,t,i){var l;if(t.primary.isCenter)return Ua;var r=e.layer,s=e.trigger,a=e.arrow,o=t.primary.oppositeSizeProp,n=s[o]>r[o],C=i+a[o]/2,c=r[o]-a[o]/2-i,h=UL(e,t,i),g=t.primary.prop,m=t.primary.oppositeCssProp,w=n?r[o]/2+h:s[m]+s[o]/2-r[m];return Y0({},Ua,(l={},l[g]="100%",l[m]=a6(w,C,c),l))}var Ga=function(){function e(i,l,r){this.placements=void 0,this.config=void 0,this.subjectsBounds=void 0,this.placements=i,this.config=l,this.subjectsBounds=r}e.getSidesFromPlacementType=function(l){var r=l.split("-"),s=r[0],a=r[1],o=p0[s],n;return a==="center"?n=C0.center:o.isHorizontal?n=a==="start"?C0.top:C0.bottom:n=a==="start"?C0.left:C0.right,[o,n]},e.create=function(l,r){var s={arrow:r.arrowOffset,container:r.containerOffset,trigger:r.triggerOffset};function a(o){o===void 0&&(o=r.placement);var n=e.getSidesFromPlacementType(o),C=n[0],c=n[1],h=p0[C.isHorizontal?r.preferY:r.preferX],g=!C.isHorizontal&&l.triggerHasBiggerWidth||C.isHorizontal&&l.triggerHasBiggerHeight;function m(L,v){return new eo(L,v,l,r.layerDimensions,s)}var w=[];return w[0]=m(C,c),w[1]=m(C,c.isCenter?h:C0.center),w[2]=m(C,C0[(c.opposite.isCenter?h.opposite:c.opposite).prop]),w[3]=m(h,g?C:C0[C.opposite.prop]),w[4]=m(h,C0.center),w[5]=m(h,g?C0[C.opposite.prop]:C),w[6]=m(p0[h.opposite.prop],g?C:C0[C.opposite.prop]),w[7]=m(p0[h.opposite.prop],C0.center),w[8]=m(p0[h.opposite.prop],g?C0[C.opposite.prop]:C),w[9]=m(p0[C.opposite.prop],c),w[10]=m(p0[C.opposite.prop],c.isCenter?h:C0.center),w[11]=m(p0[C.opposite.prop],C0[(c.opposite.isCenter?h.opposite:c.opposite).prop]),w=w.filter(function(L){return L.type===r.placement||r.possiblePlacements.includes(L.type)}),w}return r.placement==="center"?new e([new $a(C0.center,C0.center,l,r.layerDimensions,s)].concat(a(r.preferY+"-"+r.preferX)),r,l):new e(a(),r,l)};var t=e.prototype;return t.filterPlacementsBySide=function(l){return this.placements.filter(function(r){return r.primary===l})},t.findFirstPlacementThatFits=function(){return this.placements.find(function(l){return l.fitsContainer})},t.placementWithBiggestVisibleSurface=function(){var l=this.placements.map(function(s){return{placement:s,surface:s.visibleSurface}}).sort(function(s,a){return a.surface-s.surface}),r=l[0].placement;return r},t.findSuitablePlacement=function(){return this.config.auto?this.findFirstPlacementThatFits()||this.placementWithBiggestVisibleSurface():this.placements[0]},t.getSecondaryOffset=function(l){var r=this.config,s=r.auto,a=r.snap;if(!s||a||l instanceof $a)return 0;var o=this.filterPlacementsBySide(l.primary),n=o.indexOf(l)===0;if(n&&l.fitsContainer)return 0;var C=o.find(function(L){return!L.fitsContainer});if(!C)return 0;var c=C.secondaryOffsetSide;if(!c)return 0;var h=l.getContainerOffsets(),g=l.secondary,m;l.triggerIsBigger||C===l?m=c.isPush?-1:1:m=g===C0.left||[C0.top,C0.center].includes(g)&&c.isPush?-1:1;var w=h[c.prop];return w*m},t.getStyles=function(l,r,s,a){var o={willChange:"top, left, width, height"},n=GL(this.subjectsBounds.merge({layer:l}),r,this.config.arrowOffset),C=this.config.overflowContainer?Y0({},o,{position:"fixed",top:l.top,left:l.left}):Y0({},o,{position:"absolute",top:l.top-this.subjectsBounds.parent.top+s.top-a.top,left:l.left-this.subjectsBounds.parent.left+s.left-a.left});return{arrow:n,layer:C}},t.getHasDisappeared=function(l){var r=this.config.overflowContainer?this.subjectsBounds.trigger:l,s=n6.mergeSmallestSides(this.subjectsBounds.offsetsToScrollContainers(r,!0)),a=Object.entries(s.negativeSides),o=a.some(function(n){var C=n[0],c=n[1],h=p0[C];return c<=-r[h.sizeProp]});return o?"full":s.allSidesArePositive?null:"partial"},t.result=function(l,r){var s=this.findSuitablePlacement(),a=this.getSecondaryOffset(s),o=s.getLayerBounds(a),n=this.getStyles(o,s,l,r),C=s.primary.prop;return{styles:n,layerSide:C,placement:s,layerBounds:o,hasDisappeared:this.getHasDisappeared(o)}},e}(),KL=function(){function e(i,l){this.overflowContainer=void 0,this.trigger=void 0,this.layer=void 0,this.arrow=void 0,this.parent=void 0,this.window=void 0,this.scrollContainers=void 0,this.overflowContainer=l,Object.assign(this,i)}e.create=function(l,r,s,a,o,n,C,c){var h=u4.fromWindow(l);return new e({layer:u4.fromElement(r,{environment:l,withTransform:!1}),trigger:c?u4.create(o6(c())):u4.fromElement(s),arrow:o?u4.fromElement(o):u4.empty(),parent:a?u4.fromElement(a):h,window:h,scrollContainers:[h].concat(n.map(function(g){return u4.fromElement(g,{withScrollbars:!1})}))},C)};var t=e.prototype;return t.merge=function(l){return new e(Y0({},this,l),this.overflowContainer)},t.offsetsToScrollContainers=function(l,r){r===void 0&&(r=!1);var s=this.overflowContainer&&!r?[this.window]:this.scrollContainers;return s.map(function(a){return a.offsetsTo(l)})},h3(e,[{key:"layerOffsetsToScrollContainers",get:function(){return this.offsetsToScrollContainers(this.layer)}},{key:"triggerHasBiggerWidth",get:function(){return this.trigger.width>this.layer.width}},{key:"triggerHasBiggerHeight",get:function(){return this.trigger.height>this.layer.height}}]),e}(),Ka=null;var d4={auto:!1,arrowOffset:0,containerOffset:10,triggerOffset:0,overflowContainer:!0,placement:"top-center",possiblePlacements:_L,preferX:"right",preferY:"bottom",snap:!1,container:void 0,trigger:void 0};function to(e){var t,i=e.isOpen,l=i===void 0?!1:i,r=e.overflowContainer,s=r===void 0?d4.overflowContainer:r,a=e.environment,o=a===void 0?typeof window!="undefined"?window:void 0:a,n=e.ResizeObserver,C=e.placement,c=C===void 0?d4.placement:C,h=e.possiblePlacements,g=h===void 0?d4.possiblePlacements:h,m=e.preferX,w=m===void 0?d4.preferX:m,L=e.preferY,v=L===void 0?d4.preferY:L,V=e.auto,u=V===void 0?d4.auto:V,d=e.snap,p=d===void 0?d4.snap:d,Z=e.triggerOffset,R=Z===void 0?d4.triggerOffset:Z,x=e.containerOffset,N=x===void 0?d4.containerOffset:x,E=e.arrowOffset,S=E===void 0?d4.arrowOffset:E,k=e.container,b=k===void 0?d4.container:k,D=e.layerDimensions,B=D===void 0?null:D,_=e.onDisappear,K=e.onOutsideClick,Q=e.onParentClose,m1=e.trigger,g1=(0,J1.useState)(function(){return{layerSide:c==="center"?"center":Ga.getSidesFromPlacementType(c)[0].prop,styles:{layer:{position:s?"fixed":"absolute",top:0,left:0},arrow:{position:"absolute",top:0,left:0}}}}),w1=g1[0],G=g1[1],s1=(0,J1.useRef)(null),o1=TL(w1,l),R1=(0,J1.useRef)({cancelled:!1});(0,J1.useEffect)(function(){return function(){R1.current.cancelled=!0}},[]);var J=(0,J1.useCallback)(function(w2,i2,a1){var T1=w2.arrow,l2=w2.layer,q1=w2.scrollContainers,S1=w2.trigger,$1=q1[0],U1=KL.create(o,l2,S1,$1,T1,q1,s,m1==null?void 0:m1.getBounds),H2={placement:c,possiblePlacements:g,auto:u,layerDimensions:B,arrowOffset:S,containerOffset:N,triggerOffset:R,preferX:w,preferY:v,snap:p,overflowContainer:s},t1=Ga.create(U1,H2).result(i2,a1),V1=t1.hasDisappeared,f1=t1.layerSide,b1=t1.styles,z2={layerSide:f1,styles:b1};if(!o1.current||XL(o1.current,z2)){o1.current=z2,R1.current.cancelled=!0;var n1={cancelled:!1};R1.current=n1,Promise.resolve().then(function(){n1.cancelled||G(z2)})}_a(V1)&&_a(_)&&_(V1)},[S,u,N,o,B,_,s,c,g,w,v,p,R,o1,m1]),I1=DL({ResizeObserverPolyfill:n,environment:o,enabled:l,overflowContainer:s,onChange:J,triggerOption:m1}),p1=I1.triggerRef,e2=I1.layerRef,H1=I1.arrowRef,W1=I1.closestScrollContainer,E2=OL({isOpen:l,onOutsideClick:K,onParentClose:Q}),Z2=E2.closeOnOutsideClickRefs,u2=E2.registrations,y1={triggerProps:m1?{}:{ref:Wa(p1,Z2.trigger,s1)},layerProps:{ref:Wa(e2,Z2.layer),style:w1.styles.layer},arrowProps:{ref:H1,style:w1.styles.arrow,layerSide:w1.layerSide},layerSide:w1.layerSide,triggerBounds:l?m1?m1.getBounds():(t=s1.current)==null?void 0:t.getBoundingClientRect():null,renderLayer:function(w2){return typeof document!="undefined"?(0,Ya.createPortal)((0,J1.createElement)(AL,{registrations:u2,children:w2}),s||!W1?jL(b):W1):null}};return y1}function XL(e,t){if(e.layerSide!==t.layerSide)return!0;for(var i=["position","top","left","right","bottom"],l=0,r=i;l` + `,document.body.appendChild(t))}return t}var ja;(function(e){e[e.ENTERING=0]="ENTERING",e[e.LEAVING=1]="LEAVING",e[e.IDLE=2]="IDLE"})(ja||(ja={}));var YL={arrowUp:({fgColor:e,bgColor:t})=>` `,arrowDown:({fgColor:e,bgColor:t})=>` @@ -202,31 +195,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 19H8V21H7C5.34315 21 4 19.6569 4 18ZM20 14.3V18C20 19.6569 18.6569 21 17 21H16V19H17C17.5523 19 18 18.5523 18 18V13.9C18 13.0142 18.5759 12.2628 19.3738 12C18.5759 11.7372 18 10.9858 18 10.1V6C18 5.44772 17.5523 5 17 5H16V3H17C18.6569 3 20 4.34315 20 6V9.7C20 10.5284 20.6716 11.2 21.5 11.2H22V12.8H21.5C20.6716 12.8 20 13.4716 20 - 14.3Z">
    `},WF={text:V9.HeaderString,number:V9.HeaderNumber,uri:V9.HeaderUri,date:V9.HeaderDate,list:V9.HeaderArray,struct:"curlyBraces"},$F={text:m1.Text,number:m1.Number,uri:m1.Uri,date:m1.Text,list:m1.Text,struct:m1.Text},vH={fontFamily:"JetBrains Mono",bgHeader:"white",textDark:"#61758a",textHeader:"#304254",headerFontStyle:"bold 14px",baseFontStyle:"14px",borderColor:"#E1E8F0",horizontalBorderColor:"#E1E8F0",accentColor:"#3E64FF",accentLight:"#ECF0FF",bgHeaderHovered:"#F0F5F9",bgHeaderHasFocus:"#E1E8F0",bgSearchResult:"#FFF7EC",headerIconSize:22};function pH({ctx:e,data:t}){var C2,u2,s2;let l=[],r=[],i=o1=>o1.map(f1=>{let x1=f1.summary,z1=f1.label,q1=f1.key;return r.push({[z1]:250}),x1&&l.push(x1.keys.length),{title:z1,id:q1,type:f1.type,icon:WF[f1.type]||V9.HeaderString,hasMenu:f1.type!=="list",summary:x1}}),s=i(t.content.columns),o=t.features.includes("refetch"),a=t.features.includes("export"),n=t.content.columns.length!==0,c=l.length>0,C=t.features.includes("sorting"),m=t.features.includes("relocate"),h=a?(C2=t.export)==null?void 0:C2.formats:null,u=a&&h,d={rows:N2.empty(),columns:N2.empty()},[H,f]=(0,e1.useState)(t.content),[w,g]=(0,e1.useState)(!1),[L,v]=(0,e1.useState)(s),[M,E]=(0,e1.useState)(r),[p,x]=(0,e1.useState)(null),[Z,N]=(0,e1.useState)(!1),[F,b]=(0,e1.useState)(d),[B,U]=(0,e1.useState)(0),[g1,h1]=(0,e1.useState)(null),J=H.total_rows,n1=n&&J>0,O=t.features.includes("pagination")&&(J===null||J>0),a1=H.limit===J,q=44,E1=c&&n1?Math.max(...l):0,c1=q+E1*22,r1=C?140:70,d1=440+c1,e2=J&&J<(C?3:2)&&p?r1+c1:null,U1=J>=10&&a1?d1:e2,P2=(H.page-1)*H.limit+1,O1=c?150:50,t2=t.content.columns.length===1?800:350,X1=H.page_length,p1=(0,e1.useCallback)(o1=>{let{ctx:L1,theme:f1,rect:x1,column:z1,menuBounds:q1,isHovered:A2,isSelected:L2,spriteManager:B0}=o1;if(z1.sourceIndex===0)return!0;if(!n1)return!1;L1.rect(x1.x,x1.y,x1.width,x1.height);let H0=10,L0=19,W2=L2?f1.textHeaderSelected:f1.textHeader,g5=L2?f1.accentLight:f1.textDark,V2=z1.hasMenu===!0&&A2,j2=!!z1.summary,C0=35,R2=x1.width-C0,i0=x1.width-C0*.7,V0=R2/x1.width,r5=i0/x1.width,m4=L1.createLinearGradient(x1.x,0,x1.x+x1.width,0),_5=J7(W2,0),Z4=b5(L1,`${f1.headerFontStyle} ${f1.fontFamily}`);if(m4.addColorStop(0,W2),m4.addColorStop(V0,W2),m4.addColorStop(r5,_5),m4.addColorStop(1,_5),L1.fillStyle=V2?m4:W2,z1.icon){let S0=L2?"selected":z1.style==="highlight"?"special":"normal",X0=f1.headerIconSize;B0.drawSprite(z1.icon,S0,L1,x1.x+H0,x1.y+H0,X0,f1),z1.overlayIcon&&B0.drawSprite(z1.overlayIcon,L2?"selected":"special",L1,x1.x+H0+L0/2,x1.y+H0+L0/2,L0,f1)}if(L1.fillText(z1.title,q1.x-x1.width+f1.headerIconSize*2.5+14,j2?x1.y+H0+f1.headerIconSize/2+Z4:q1.y+q1.height/2+Z4),j2){let S0=H.columns[z1.sourceIndex-1].summary,X0=Object.fromEntries(S0.keys.map((X2,v9)=>[X2,S0.values[v9]])),h4=13,T4=h4+H0,s0=`${h4}px ${f1.fontFamily}`,v2=`bold ${s0}`;L1.fillStyle=g5,Object.entries(X0).forEach(([X2,v9],w4)=>{L1.font=v2,L1.fillText(`${X2}:`,x1.x+T4/2,x1.y+T4*(w4+1)+T4),L1.font=s0,L1.fillText(v9,x1.x+L1.measureText(X2).width+T4,x1.y+T4*(w4+1)+T4)})}if(V2){L1.fillStyle=m4;let S0=q1.x+q1.width/2-H0*1.5,X0=f1.headerIconSize/2-2,h4=new Path2D("M12 16l-6-6h12z");L1.translate(S0,X0),L1.fill(h4)}return!0},[H]),i2=(0,e1.useCallback)(([o1,L1])=>{let f1=$F[H.columns[o1].type]||m1.Text,z1=H.data_orientation==="columns"?H.data[o1][L1]:H.data[L1][o1];return{kind:f1,data:z1,displayData:z1,allowOverlay:!0,allowWrapping:!1,readonly:!0}},[H]),I1=()=>{g(!w)},_1=o1=>{let L1=o1!=="none"?p.columnKey:null;e.pushEvent("order_by",{key:L1,direction:o1!=null?o1:"asc"}),x(null)},s1=()=>{e.pushEvent("show_page",{page:H.page-1}),b(j(S({},d),{columns:F.columns}))},H1=()=>{e.pushEvent("show_page",{page:H.page+1}),b(j(S({},d),{columns:F.columns}))},A=()=>{let o1=j(S({},d),{columns:N2.fromSingleSelection(p.column)});b(o1),x(null)},{layerProps:D,renderLayer:k1}=VH({isOpen:Z,auto:!0,placement:"bottom-end",possiblePlacements:["bottom-end","bottom-center","bottom-start"],triggerOffset:0,onOutsideClick:()=>x(null),trigger:{getBounds:()=>{var o1,L1,f1,x1,z1,q1,A2,L2;return{left:(o1=p==null?void 0:p.bounds.x)!=null?o1:0,top:(L1=p==null?void 0:p.bounds.y)!=null?L1:0,width:(f1=p==null?void 0:p.bounds.width)!=null?f1:0,height:(x1=p==null?void 0:p.bounds.height)!=null?x1:0,right:((z1=p==null?void 0:p.bounds.x)!=null?z1:0)+((q1=p==null?void 0:p.bounds.width)!=null?q1:0),bottom:((A2=p==null?void 0:p.bounds.y)!=null?A2:0)+((L2=p==null?void 0:p.bounds.height)!=null?L2:0)}}}}),D1=(0,e1.useCallback)((o1,L1)=>{E(f1=>j(S({},f1),{[o1.title]:L1}))},[]),n2=(0,e1.useCallback)((o1,L1)=>{e.pushEvent("relocate",{from_index:o1,to_index:L1}),x(null),b(d)},[]),N1=(0,e1.useCallback)((o1,L1)=>{let{summary:f1,id:x1,type:z1}=L[o1];f1||x({column:o1,bounds:L1,columnKey:x1,columnType:z1})},[L]),g2=(0,e1.useCallback)((o1,{bounds:L1})=>{let{id:f1,type:x1}=L[o1];x({column:o1,bounds:L1,columnKey:f1,columnType:x1})},[L]),Y1=(0,e1.useCallback)(o1=>{let[L1,f1]=o1.location;f1===-1&&L1===-1&&o1.kind==="header"?h1([...Array.from({length:X1},(x1,z1)=>z1)]):L1===-1&&o1.kind==="cell"?h1([f1]):h1(null)},[X1]),Q1=(0,e1.useCallback)(o1=>g1!=null&&g1.includes(o1)?{bgCell:vH.bgHeaderHovered}:null,[g1]);return(0,e1.useEffect)(()=>{var o1;((o1=F.rows)==null?void 0:o1.items.length)>0?U(1):U(0)},[F]),(0,e1.useEffect)(()=>{e.handleEvent("update_content",o1=>{let L1=i(o1.columns);v(L1),f(o1)}),e.handleEvent("download_content",([o1,L1])=>{let f1=new Blob([L1],{type:o1.type}),x1=document.createElement("a");x1.href=window.URL.createObjectURL(f1),x1.download=`${o1.filename}-${+new Date}${o1.format}`,x1.click()})},[]),(0,e1.useEffect)(()=>{var f1;let o1=((f1=H.order)==null?void 0:f1.direction)==="asc"?"arrowUp":"arrowDown",L1=L.map(x1=>{var z1;return j(S({},x1),{overlayIcon:x1.id===((z1=H.order)==null?void 0:z1.key)?o1:null})});v(L1)},[(u2=H.order)==null?void 0:u2.direction,(s2=H.order)==null?void 0:s2.key]),(0,e1.useEffect)(()=>{let o1=L.map(L1=>j(S({},L1),{width:M[L1.title]}));v(o1)},[M]),(0,e1.useEffect)(()=>{let o1=p==null?void 0:p.columnKey,L1={bgHeader:"#F0F5F9"},f1=L.map(x1=>j(S({},x1),{themeOverride:x1.id===o1?L1:null}));v(f1),N(!!p)},[p]),e1.default.createElement("div",{className:"p-3 font-sans"},e1.default.createElement("div",{className:"mb-6 flex items-center gap-3"},e1.default.createElement("div",{className:"flex items-baseline"},e1.default.createElement("h2",{className:"text-md font-semibold leading-none text-gray-800"},t.name),e1.default.createElement("span",{className:"ml-2.5 text-xs leading-none"},J||"?"," ",J===1?"entry":"entries"),Je.pushEvent("download",{format:o1})}),e1.default.createElement("div",{className:"grow"}),o&&e1.default.createElement(qF,{onRefetch:()=>e.pushEvent("refetch")}),e1.default.createElement(jF,{toggleSearch:I1}),e1.default.createElement(GF,{limit:H.limit,totalRows:J,onChange:o1=>e.pushEvent("limit",{limit:o1})}),O&&e1.default.createElement(KF,{page:H.page,maxPage:H.max_page,onPrev:s1,onNext:H1,rows:X1})),n&&e1.default.createElement(jd,{className:"max-w-full rounded-lg shadow-[0_2px_10px_rgb(0,0,0,0.15)]",theme:vH,getCellContent:i2,columns:L,rows:X1,width:"100%",height:U1,rowHeight:44,headerHeight:c1,drawHeader:p1,verticalBorder:!1,rowMarkers:"clickable-number",rowMarkerWidth:32,onHeaderMenuClick:N1,onHeaderClicked:g2,showSearch:w,getCellsForSelection:!0,onSearchClose:I1,headerIcons:AF,overscrollX:100,isDraggable:!1,smoothScrollX:!0,smoothScrollY:!0,onColumnResize:D1,columnSelect:"none",gridSelection:F,onGridSelectionChange:o1=>b(o1),rowMarkerStartIndex:P2,minColumnWidth:O1,maxColumnAutoWidth:t2,fillHandle:!0,onItemHovered:Y1,getRowThemeOverride:Q1,onColumnMoved:m?n2:void 0}),Z&&k1(e1.default.createElement(XF,{layerProps:D,menu:p,orderBy:_1,selectAllCurrent:A,hasSorting:C})),!n&&e1.default.createElement("p",{className:"text-sm text-gray-700"},"No data"),e1.default.createElement("div",{id:"portal"}))}function UF({supportedFormats:e,onDownload:t}){let l=(0,e1.useRef)();return e1.default.createElement("span",{className:"tooltip right","data-tooltip":"Export to"},e1.default.createElement(ps,{onClick:r=>l.current.click()},e1.default.createElement("div",{className:"relative"},e1.default.createElement(Qd,{size:18}),e1.default.createElement("select",{className:"absolute inset-0 cursor-pointer opacity-0",ref:l,value:"",onChange:r=>t(r.target.value)},e1.default.createElement("option",{disabled:!0,value:""},"Export to"),e.map(r=>e1.default.createElement("option",{key:r},r))))))}function qF({onRefetch:e}){return e1.default.createElement(ps,{"aria-label":"refresh",onClick:e},e1.default.createElement(Jd,null))}function jF({toggleSearch:e}){return e1.default.createElement("span",{className:"tooltip right","data-tooltip":"Current page search"},e1.default.createElement(ps,{"aria-label":"search",onClick:e},e1.default.createElement(eH,{size:16})))}function ps(l){var r=l,{children:e}=r,t=v0(r,["children"]);return e1.default.createElement("button",j(S({},t),{className:"align-center flex cursor-pointer items-center rounded-full p-1 leading-none text-gray-500 hover:text-gray-900 focus:bg-gray-100 focus:outline-none disabled:cursor-default disabled:text-gray-300"}),e)}function GF({limit:e,totalRows:t,onChange:l}){return e1.default.createElement("div",null,e1.default.createElement("form",null,e1.default.createElement("label",{className:"p-1 text-xs font-medium text-gray-500"},"Show"),e1.default.createElement("div",{class:"relative inline-block"},e1.default.createElement("select",{className:"appearance-none rounded-lg border border-gray-400 bg-white px-2 py-1 pr-7 text-xs font-medium text-gray-500 focus:outline-none",value:e,onChange:r=>l(parseInt(r.target.value))},e1.default.createElement("option",{value:"10"},"10"),e1.default.createElement("option",{value:"20"},"20"),e1.default.createElement("option",{value:"50"},"50"),e1.default.createElement("option",{value:"100"},"100"),t?e1.default.createElement("option",{value:t},"All"):null),e1.default.createElement("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-500"},e1.default.createElement(Kd,{size:16})))))}function KF({page:e,maxPage:t,onPrev:l,onNext:r,rows:i}){return e1.default.createElement("div",{className:"flex gap-3"},e1.default.createElement("button",{className:"flex items-center text-xs font-medium text-gray-500 hover:text-gray-800 focus:outline-none disabled:pointer-events-none disabled:text-gray-300",onClick:l,disabled:e===1},e1.default.createElement(Xd,{size:16}),e1.default.createElement("span",null,"Prev")),e1.default.createElement("div",{className:"rounded-lg border border-gray-400 px-2 py-1 text-xs font-semibold text-gray-500"},e1.default.createElement("span",null,e," of ",t||"?")),e1.default.createElement("button",{className:"flex items-center text-xs font-medium text-gray-500 hover:text-gray-800 focus:outline-none disabled:pointer-events-none disabled:text-gray-300",onClick:r,disabled:e===t||i===0},e1.default.createElement("span",null,"Next"),e1.default.createElement(Yd,{size:16})))}function XF({layerProps:e,selectAllCurrent:t,hasSorting:l,orderBy:r}){return e1.default.createElement("div",S({className:"flex w-48 flex-col rounded-b-md border border-gray-200 bg-white p-2 font-sans shadow-lg"},e),e1.default.createElement("button",{className:"mb-1.5 flex w-full justify-center rounded-lg border border-gray-200 bg-gray-100 px-3 py-1.5 text-sm font-medium leading-none text-gray-700 hover:bg-gray-200",onClick:t},"Select this column"),l&&e1.default.createElement(e1.default.Fragment,null,e1.default.createElement(vs,{onClick:()=>r("asc")},e1.default.createElement(tH,{size:14}),e1.default.createElement("span",null,"Sort: ascending")),e1.default.createElement(vs,{onClick:()=>r("desc")},e1.default.createElement(lH,{size:14}),e1.default.createElement("span",null,"Sort: descending")),e1.default.createElement(vs,{onClick:()=>r("none")},e1.default.createElement(Gd,{size:14}),e1.default.createElement("span",null,"Sort: none"))))}function vs(l){var r=l,{children:e}=r,t=v0(r,["children"]);return e1.default.createElement("div",j(S({},t),{className:"flex cursor-pointer items-center justify-start gap-1 p-1 text-sm text-gray-700 hover:bg-gray-100"}),e)}function XP(e,t){e.importCSS("main.css"),e.importCSS("https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap"),e.importCSS("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap"),(0,xH.createRoot)(e.root).render(fH.default.createElement(pH,{ctx:e,data:t}))}export{XP as init}; + 14.3Z">
    `},QL={text:a5.HeaderString,number:a5.HeaderNumber,uri:a5.HeaderUri,date:a5.HeaderDate,list:a5.HeaderArray,struct:"curlyBraces"},JL={text:c1.Text,number:c1.Number,uri:c1.Uri,date:c1.Text,list:c1.Text,struct:c1.Text},io={fontFamily:"JetBrains Mono",bgHeader:"white",textDark:"#61758a",textHeader:"#304254",headerFontStyle:"bold 14px",baseFontStyle:"14px",borderColor:"#E1E8F0",horizontalBorderColor:"#E1E8F0",accentColor:"#3E64FF",accentLight:"#ECF0FF",bgHeaderHovered:"#F0F5F9",bgHeaderHasFocus:"#E1E8F0",bgSearchResult:"#FFF7EC",headerIconSize:22};function lo({ctx:e,data:t}){var f1,b1,z2;let i=[],l=[],r=n1=>n1.map(l1=>{let M1=l1.summary,Z1=l1.label,R2=l1.key;return l.push({[Z1]:250}),M1&&i.push(M1.keys.length),{title:Z1,id:R2,type:l1.type,icon:QL[l1.type]||a5.HeaderString,hasMenu:l1.type!=="list",summary:M1}}),s=r(t.content.columns),a=t.features.includes("refetch"),o=t.features.includes("export"),n=t.content.columns.length!==0,C=i.length>0,c=t.features.includes("sorting"),h=t.features.includes("relocate"),g=o?(f1=t.export)==null?void 0:f1.formats:null,m=o&&g,w={rows:x2.empty(),columns:x2.empty()},[L,v]=(0,i1.useState)(t.content),[V,u]=(0,i1.useState)(!1),[d,p]=(0,i1.useState)(s),[Z,R]=(0,i1.useState)(l),[x,N]=(0,i1.useState)(null),[E,S]=(0,i1.useState)(!1),[k,b]=(0,i1.useState)(w),[D,B]=(0,i1.useState)(0),[_,K]=(0,i1.useState)(null),Q=L.total_rows,m1=n&&Q>0,g1=t.features.includes("pagination")&&(Q===null||Q>0),w1=L.limit===Q,G=44,s1=C&&m1?Math.max(...i):0,o1=G+s1*22,R1=c?140:70,J=440+o1,p1=Q&&Q<(c?3:2)&&x?R1+o1:null,e2=Q>=10&&w1?J:p1,H1=(L.page-1)*L.limit+1,W1=C?150:50,E2=t.content.columns.length===1?800:350,Z2=L.page_length,u2=(0,i1.useCallback)((n1,L1)=>{let{ctx:l1,theme:M1,rect:Z1,column:R2,menuBounds:Q2,isHovered:e0,isSelected:t0,spriteManager:c0}=n1;if(R2.sourceIndex===0)return!0;if(!m1)return!1;l1.rect(Z1.x,Z1.y,Z1.width,Z1.height);let Y2=10,J2=19,k0=t0?M1.textHeaderSelected:M1.textHeader,C2=t0?M1.accentLight:M1.textDark,m2=R2.hasMenu===!0&&e0,L2=L.columns[R2.sourceIndex-1].summary,A2=!!L2,y2=35,F2=Z1.width-y2,Z0=Z1.width-y2*.7,o4=F2/Z1.width,T0=Z0/Z1.width,m0=l1.createLinearGradient(Z1.x,0,Z1.x+Z1.width,0),B1=z0(k0,0),S2=x0(l1,`${M1.headerFontStyle} ${M1.fontFamily}`);if(m0.addColorStop(0,k0),m0.addColorStop(o4,k0),m0.addColorStop(T0,B1),m0.addColorStop(1,B1),l1.fillStyle=m2?m0:k0,R2.icon){let X1=t0?"selected":R2.style==="highlight"?"special":"normal",N2=M1.headerIconSize;c0.drawSprite(R2.icon,X1,l1,Z1.x+Y2,Z1.y+Y2,N2,M1),R2.overlayIcon&&c0.drawSprite(R2.overlayIcon,t0?"selected":"special",l1,Z1.x+Y2+J2/2,Z1.y+Y2+J2/2,J2,M1)}if(l1.fillText(R2.title,Q2.x-Z1.width+M1.headerIconSize*2.5+14,A2?Z1.y+Y2+M1.headerIconSize/2+S2:Q2.y+Q2.height/2+S2),A2){let X1=Object.fromEntries(L2.keys.map((P0,q0)=>[P0,L2.values[q0]])),N2=13,j1=N2+Y2,Q0=`${N2}px ${M1.fontFamily}`,v4=`bold ${Q0}`;l1.fillStyle=C2,Object.entries(X1).forEach(([P0,q0],z4)=>{l1.font=v4,l1.fillText(`${P0}:`,Z1.x+j1/2,Z1.y+j1*(z4+1)+j1),l1.font=Q0,l1.fillText(q0,Z1.x+l1.measureText(P0).width+j1,Z1.y+j1*(z4+1)+j1)})}if(m2){l1.fillStyle=m0;let X1=Q2.x+Q2.width/2-Y2*1.5,N2=M1.headerIconSize/2-2,j1=new Path2D("M12 16l-6-6h12z");l1.translate(X1,N2),l1.fill(j1)}L1()},[L]),y1=(0,i1.useCallback)(([n1,L1])=>{let l1=JL[L.columns[n1].type]||c1.Text,Z1=L.data_orientation==="columns"?L.data[n1][L1]:L.data[L1][n1];return{kind:l1,data:Z1,displayData:Z1,allowOverlay:!0,allowWrapping:!1,readonly:!0}},[L]),t2=()=>{u(!V)},w2=n1=>{let L1=n1!=="none"?x.columnKey:null;e.pushEvent("order_by",{key:L1,direction:n1!=null?n1:"asc"}),N(null)},i2=()=>{e.pushEvent("show_page",{page:L.page-1}),b(P(y({},w),{columns:k.columns}))},a1=()=>{e.pushEvent("show_page",{page:L.page+1}),b(P(y({},w),{columns:k.columns}))},T1=()=>{let n1=P(y({},w),{columns:x2.fromSingleSelection(x.column)});b(n1),N(null)},{layerProps:l2,renderLayer:q1}=to({isOpen:E,auto:!0,placement:"bottom-end",possiblePlacements:["bottom-end","bottom-center","bottom-start"],triggerOffset:0,onOutsideClick:()=>N(null),trigger:{getBounds:()=>{var n1,L1,l1,M1,Z1,R2,Q2,e0;return{left:(n1=x==null?void 0:x.bounds.x)!=null?n1:0,top:(L1=x==null?void 0:x.bounds.y)!=null?L1:0,width:(l1=x==null?void 0:x.bounds.width)!=null?l1:0,height:(M1=x==null?void 0:x.bounds.height)!=null?M1:0,right:((Z1=x==null?void 0:x.bounds.x)!=null?Z1:0)+((R2=x==null?void 0:x.bounds.width)!=null?R2:0),bottom:((Q2=x==null?void 0:x.bounds.y)!=null?Q2:0)+((e0=x==null?void 0:x.bounds.height)!=null?e0:0)}}}}),S1=(0,i1.useCallback)((n1,L1)=>{R(l1=>P(y({},l1),{[n1.title]:L1}))},[]),$1=(0,i1.useCallback)((n1,L1)=>{e.pushEvent("relocate",{from_index:n1,to_index:L1}),N(null),b(w)},[]),U1=(0,i1.useCallback)((n1,L1)=>{let{summary:l1,id:M1,type:Z1}=d[n1];l1||N({column:n1,bounds:L1,columnKey:M1,columnType:Z1})},[d]),H2=(0,i1.useCallback)((n1,{bounds:L1})=>{let{id:l1,type:M1}=d[n1];N({column:n1,bounds:L1,columnKey:l1,columnType:M1})},[d]),t1=(0,i1.useCallback)(n1=>{let[L1,l1]=n1.location;l1===-1&&L1===-1&&n1.kind==="header"?K([...Array.from({length:Z2},(M1,Z1)=>Z1)]):L1===-1&&n1.kind==="cell"?K([l1]):K(null)},[Z2]),V1=(0,i1.useCallback)(n1=>_!=null&&_.includes(n1)?{bgCell:io.bgHeaderHovered}:null,[_]);return(0,i1.useEffect)(()=>{var n1;((n1=k.rows)==null?void 0:n1.items.length)>0?B(1):B(0)},[k]),(0,i1.useEffect)(()=>{e.handleEvent("update_content",n1=>{let L1=r(n1.columns);p(L1),v(n1)}),e.handleEvent("download_content",([n1,L1])=>{let l1=new Blob([L1],{type:n1.type}),M1=document.createElement("a");M1.href=window.URL.createObjectURL(l1),M1.download=`${n1.filename}-${+new Date}${n1.format}`,M1.click()})},[]),(0,i1.useEffect)(()=>{var l1;let n1=((l1=L.order)==null?void 0:l1.direction)==="asc"?"arrowUp":"arrowDown",L1=d.map(M1=>{var Z1;return P(y({},M1),{overlayIcon:M1.id===((Z1=L.order)==null?void 0:Z1.key)?n1:null})});p(L1)},[(b1=L.order)==null?void 0:b1.direction,(z2=L.order)==null?void 0:z2.key]),(0,i1.useEffect)(()=>{let n1=d.map(L1=>P(y({},L1),{width:Z[L1.title]}));p(n1)},[Z]),(0,i1.useEffect)(()=>{let n1=x==null?void 0:x.columnKey,L1={bgHeader:"#F0F5F9"},l1=d.map(M1=>P(y({},M1),{themeOverride:M1.id===n1?L1:null}));p(l1),S(!!x)},[x]),i1.default.createElement("div",{className:"p-3 font-sans"},i1.default.createElement("div",{className:"mb-6 flex items-center gap-3"},i1.default.createElement("div",{className:"flex items-baseline"},i1.default.createElement("h2",{className:"text-md font-semibold leading-none text-gray-800"},t.name),i1.default.createElement("span",{className:"ml-2.5 text-xs leading-none"},Q||"?"," ",Q===1?"entry":"entries"),Qe.pushEvent("download",{format:n1})}),i1.default.createElement("div",{className:"grow"}),a&&i1.default.createElement(tV,{onRefetch:()=>e.pushEvent("refetch")}),i1.default.createElement(iV,{toggleSearch:t2}),i1.default.createElement(lV,{limit:L.limit,totalRows:Q,onChange:n1=>e.pushEvent("limit",{limit:n1})}),g1&&i1.default.createElement(rV,{page:L.page,maxPage:L.max_page,onPrev:i2,onNext:a1,rows:Z2})),n&&i1.default.createElement(l6,{className:"max-w-full rounded-lg shadow-[0_2px_10px_rgb(0,0,0,0.15)]",theme:io,getCellContent:y1,columns:d,rows:Z2,width:"100%",height:e2,rowHeight:44,headerHeight:o1,drawHeader:u2,verticalBorder:!1,rowMarkers:"clickable-number",rowMarkerWidth:32,onHeaderMenuClick:U1,onHeaderClicked:H2,showSearch:V,getCellsForSelection:!0,onSearchClose:t2,headerIcons:YL,overscrollX:100,isDraggable:!1,smoothScrollX:!0,smoothScrollY:!0,onColumnResize:S1,columnSelect:"none",gridSelection:k,onGridSelectionChange:n1=>b(n1),rowMarkerStartIndex:H1,minColumnWidth:W1,maxColumnAutoWidth:E2,fillHandle:!0,onItemHovered:t1,getRowThemeOverride:V1,onColumnMoved:h?$1:void 0}),E&&q1(i1.default.createElement(sV,{layerProps:l2,menu:x,orderBy:w2,selectAllCurrent:T1,hasSorting:c})),!n&&i1.default.createElement("p",{className:"text-sm text-gray-700"},"No data"),i1.default.createElement("div",{id:"portal"}))}function eV({supportedFormats:e,onDownload:t}){let i=(0,i1.useRef)();return i1.default.createElement("span",{className:"tooltip right","data-tooltip":"Export to"},i1.default.createElement(c6,{onClick:l=>i.current.click()},i1.default.createElement("div",{className:"relative"},i1.default.createElement(Sa,{size:18}),i1.default.createElement("select",{className:"absolute inset-0 cursor-pointer opacity-0",ref:i,value:"",onChange:l=>t(l.target.value)},i1.default.createElement("option",{disabled:!0,value:""},"Export to"),e.map(l=>i1.default.createElement("option",{key:l},l))))))}function tV({onRefetch:e}){return i1.default.createElement(c6,{"aria-label":"refresh",onClick:e},i1.default.createElement(ka,null))}function iV({toggleSearch:e}){return i1.default.createElement("span",{className:"tooltip right","data-tooltip":"Current page search"},i1.default.createElement(c6,{"aria-label":"search",onClick:e},i1.default.createElement(Ta,{size:16})))}function c6(i){var l=i,{children:e}=l,t=o0(l,["children"]);return i1.default.createElement("button",P(y({},t),{className:"align-center flex cursor-pointer items-center rounded-full p-1 leading-none text-gray-500 hover:text-gray-900 focus:bg-gray-100 focus:outline-none disabled:cursor-default disabled:text-gray-300"}),e)}function lV({limit:e,totalRows:t,onChange:i}){return i1.default.createElement("div",null,i1.default.createElement("form",null,i1.default.createElement("label",{className:"p-1 text-xs font-medium text-gray-500"},"Show"),i1.default.createElement("div",{class:"relative inline-block"},i1.default.createElement("select",{className:"appearance-none rounded-lg border border-gray-400 bg-white px-2 py-1 pr-7 text-xs font-medium text-gray-500 focus:outline-none",value:e,onChange:l=>i(parseInt(l.target.value))},i1.default.createElement("option",{value:"10"},"10"),i1.default.createElement("option",{value:"20"},"20"),i1.default.createElement("option",{value:"50"},"50"),i1.default.createElement("option",{value:"100"},"100"),t?i1.default.createElement("option",{value:t},"All"):null),i1.default.createElement("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-500"},i1.default.createElement(ya,{size:16})))))}function rV({page:e,maxPage:t,onPrev:i,onNext:l,rows:r}){return i1.default.createElement("div",{className:"flex gap-3"},i1.default.createElement("button",{className:"flex items-center text-xs font-medium text-gray-500 hover:text-gray-800 focus:outline-none disabled:pointer-events-none disabled:text-gray-300",onClick:i,disabled:e===1},i1.default.createElement(ba,{size:16}),i1.default.createElement("span",null,"Prev")),i1.default.createElement("div",{className:"rounded-lg border border-gray-400 px-2 py-1 text-xs font-semibold text-gray-500"},i1.default.createElement("span",null,e," of ",t||"?")),i1.default.createElement("button",{className:"flex items-center text-xs font-medium text-gray-500 hover:text-gray-800 focus:outline-none disabled:pointer-events-none disabled:text-gray-300",onClick:l,disabled:e===t||r===0},i1.default.createElement("span",null,"Next"),i1.default.createElement(Fa,{size:16})))}function sV({layerProps:e,selectAllCurrent:t,hasSorting:i,orderBy:l}){return i1.default.createElement("div",y({className:"flex w-48 flex-col rounded-b-md border border-gray-200 bg-white p-2 font-sans shadow-lg"},e),i1.default.createElement("button",{className:"mb-1.5 flex w-full justify-center rounded-lg border border-gray-200 bg-gray-100 px-3 py-1.5 text-sm font-medium leading-none text-gray-700 hover:bg-gray-200",onClick:t},"Select this column"),i&&i1.default.createElement(i1.default.Fragment,null,i1.default.createElement(C6,{onClick:()=>l("asc")},i1.default.createElement(Pa,{size:14}),i1.default.createElement("span",null,"Sort: ascending")),i1.default.createElement(C6,{onClick:()=>l("desc")},i1.default.createElement(Da,{size:14}),i1.default.createElement("span",null,"Sort: descending")),i1.default.createElement(C6,{onClick:()=>l("none")},i1.default.createElement(za,{size:14}),i1.default.createElement("span",null,"Sort: none"))))}function C6(i){var l=i,{children:e}=l,t=o0(l,["children"]);return i1.default.createElement("div",P(y({},t),{className:"flex cursor-pointer items-center justify-start gap-1 p-1 text-sm text-gray-700 hover:bg-gray-100"}),e)}function MZ(e,t){e.importCSS("main.css"),e.importCSS("https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap"),e.importCSS("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap"),(0,so.createRoot)(e.root).render(ro.default.createElement(lo,{ctx:e,data:t}))}export{MZ as init}; /*! Bundled license information: -scheduler/cjs/scheduler.production.min.js: - (** - * @license React - * scheduler.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - *) - -react-dom/cjs/react-dom.production.min.js: - (** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - *) - classnames/index.js: (*! Copyright (c) 2018 Jed Watson. diff --git a/lib/assets/data_table/build/number-overlay-editor-CU4RMYZF.js b/lib/assets/data_table/build/number-overlay-editor-CU4RMYZF.js new file mode 100644 index 00000000..5595f35e --- /dev/null +++ b/lib/assets/data_table/build/number-overlay-editor-CU4RMYZF.js @@ -0,0 +1,5 @@ +import{e as ie,g as oe,h as ue}from"./chunk-2HCNYJTW.js";var $=ie(oe(),1);var fe=ue("div")({name:"NumberOverlayEditorStyle",class:"gdg-n15fjm3e",propsAsIs:!1});var w=ie(oe());function me(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a=m?a=a+le("0",l-m):a=(a.substring(0,l)||"0")+"."+a.substring(l),t+a}function ve(e,r,t){if(["","-"].indexOf(e)!==-1)return e;var n=(e.indexOf(".")!==-1||t)&&r,a=ae(e),i=a.beforeDecimal,l=a.afterDecimal,m=a.hasNegation,y=parseFloat("0."+(l||"0")),S=l.length<=r?"0."+l:y.toFixed(r),g=S.split("."),d=i.split("").reverse().reduce(function(s,C,I){return s.length>I?(Number(s[0])+Number(C)).toString()+s.substring(1,s.length):C+s},g[0]),v=ye(g[1]||"",r,t),f=m?"-":"",p=n?".":"";return""+f+d+p+v}function U(e,r){if(e.value=e.value,e!==null){if(e.createTextRange){var t=e.createTextRange();return t.move("character",r),t.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(r,r),!0):(e.focus(),!1)}}function Te(e,r){for(var t=0,n=0,a=e.length,i=r.length;e[t]===r[t]&&tt&&a-n>t;)n++;return{from:{start:t,end:a-n},to:{start:t,end:i-n}}}function ke(e,r,t){return Math.min(Math.max(e,r),t)}function ce(e){return Math.max(e.selectionStart,e.selectionEnd)}function _e(){return typeof navigator!="undefined"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function Pe(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function Me(e,r,t,n,a,i){var l=a.findIndex(function(R){return R}),m=e.slice(0,l);!r&&!t.startsWith(m)&&(t=m+t,n=n+m.length);for(var y=t.length,S=e.length,g={},d=new Array(y),v=0;v0&&d[s]===-1;)s--;var I=s===-1||d[s]===-1?0:d[s]+1;return I>C?C:n-I=0&&!t[r];)r--;r===-1&&(r=t.indexOf(!0))}else{for(;r<=a&&!t[r];)r++;r>a&&(r=t.lastIndexOf(!0))}return r===-1&&(r=a),r}function je(e){for(var r=Array.from({length:e.length+1}).map(function(){return!0}),t=0,n=r.length;te.length-i.length&&(R=g),e=e.substring(0,R),e=Ue(C?"-"+e:e,n),e=(e.match(We(f,!0))||[]).join("");var T=e.indexOf(f);e=e.replace(new RegExp(he(f),"g"),function(q,P){return P===T?".":""});var _=ae(e,n),j=_.beforeDecimal,E=_.afterDecimal,L=_.addNegation;return y.end-y.starti.type==="decimal"))==null?void 0:a.value;return r!=null?r:"."}function ze(){return xe()==="."?",":"."}var Je=e=>{let{value:r,onChange:t,disabled:n,highlight:a,validatedSelection:i,fixedDecimals:l,allowNegative:m,thousandSeparator:y,decimalSeparator:S}=e,g=$.useRef();return $.useLayoutEffect(()=>{var d;if(i!==void 0){let v=typeof i=="number"?[i,null]:i;(d=g.current)==null||d.setSelectionRange(v[0],v[1])}},[i]),$.createElement(fe,null,$.createElement(be,{autoFocus:!0,getInputRef:g,className:"gdg-input",onFocus:d=>d.target.setSelectionRange(a?0:d.target.value.length,d.target.value.length),disabled:n===!0,decimalScale:l,allowNegative:m,thousandSeparator:y!=null?y:ze(),decimalSeparator:S!=null?S:xe(),value:Object.is(r,-0)?"-":r!=null?r:"",onValueChange:t}))},tr=Je;export{tr as default}; diff --git a/lib/assets/data_table/build/number-overlay-editor-FPDVTUA6-T62XNA23.js b/lib/assets/data_table/build/number-overlay-editor-FPDVTUA6-T62XNA23.js deleted file mode 100644 index 9ca1d597..00000000 --- a/lib/assets/data_table/build/number-overlay-editor-FPDVTUA6-T62XNA23.js +++ /dev/null @@ -1,5 +0,0 @@ -import{e as ie,f as oe,g as ue}from"./chunk-RVIU7NCN.js";var $=ie(oe(),1);var w=ie(oe());function se(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a=m?a=a+fe("0",l-m):a=(a.substring(0,l)||"0")+"."+a.substring(l),t+a}function le(e,r,t){if(["","-"].indexOf(e)!==-1)return e;var n=(e.indexOf(".")!==-1||t)&&r,a=ae(e),i=a.beforeDecimal,l=a.afterDecimal,m=a.hasNegation,S=parseFloat("0."+(l||"0")),y=l.length<=r?"0."+l:S.toFixed(r),g=y.split("."),s=i.split("").reverse().reduce(function(d,N,I){return d.length>I?(Number(d[0])+Number(N)).toString()+d.substring(1,d.length):N+d},g[0]),v=he(g[1]||"",r,t),f=m?"-":"",p=n?".":"";return""+f+s+p+v}function U(e,r){if(e.value=e.value,e!==null){if(e.createTextRange){var t=e.createTextRange();return t.move("character",r),t.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(r,r),!0):(e.focus(),!1)}}function Oe(e,r){for(var t=0,n=0,a=e.length,i=r.length;e[t]===r[t]&&tt&&a-n>t;)n++;return{from:{start:t,end:a-n},to:{start:t,end:i-n}}}function _e(e,r,t){return Math.min(Math.max(e,r),t)}function ve(e){return Math.max(e.selectionStart,e.selectionEnd)}function Te(){return typeof navigator!="undefined"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function ke(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function Pe(e,r,t,n,a,i){var l=a.findIndex(function(R){return R}),m=e.slice(0,l);!r&&!t.startsWith(m)&&(t=m+t,n=n+m.length);for(var S=t.length,y=e.length,g={},s=new Array(S),v=0;v0&&s[d]===-1;)d--;var I=d===-1||s[d]===-1?0:s[d]+1;return I>N?N:n-I=0&&!t[r];)r--;r===-1&&(r=t.indexOf(!0))}else{for(;r<=a&&!t[r];)r++;r>a&&(r=t.lastIndexOf(!0))}return r===-1&&(r=a),r}function Me(e){for(var r=Array.from({length:e.length+1}).map(function(){return!0}),t=0,n=r.length;te.length-i.length&&(R=g),e=e.substring(0,R),e=$e(N?"-"+e:e,n),e=(e.match(Ue(f,!0))||[]).join("");var _=e.indexOf(f);e=e.replace(new RegExp(ge(f),"g"),function(H,P){return P===_?".":""});var k=ae(e,n),j=k.beforeDecimal,E=k.afterDecimal,L=k.addNegation;return S.end-S.starti.type==="decimal"))==null?void 0:t.value;return a!=null?a:"."}function qe(){return be()==="."?",":"."}var Je=e=>{let{value:r,onChange:t,disabled:n,highlight:a,validatedSelection:i,fixedDecimals:l,allowNegative:m,thousandSeparator:S,decimalSeparator:y}=e,g=$.useRef();return $.useLayoutEffect(()=>{var s;if(i!==void 0){let v=typeof i=="number"?[i,null]:i;(s=g.current)==null||s.setSelectionRange(v[0],v[1])}},[i]),$.createElement(He,null,$.createElement(pe,{autoFocus:!0,getInputRef:g,className:"gdg-input",onFocus:s=>s.target.setSelectionRange(a?0:s.target.value.length,s.target.value.length),disabled:n===!0,decimalScale:l,allowNegative:m,thousandSeparator:S!=null?S:qe(),decimalSeparator:y!=null?y:be(),value:Object.is(r,-0)?"-":r!=null?r:"",onValueChange:t}))},er=Je;export{er as default};